Skip to content

Commit

Permalink
fix: rework android detection
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiud committed Apr 21, 2024
1 parent 31429d8 commit ec986f3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/glog/platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
#elif defined(__CYGWIN__) || defined(__CYGWIN32__)
# define GLOG_OS_CYGWIN
#elif defined(linux) || defined(__linux) || defined(__linux__)
# ifndef GLOG_OS_LINUX
# define GLOG_OS_LINUX
# define GLOG_OS_LINUX
# if defined(__ANDROID__)
# define GLOG_OS_ANDROID
# endif
#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
# define GLOG_OS_MACOSX
Expand All @@ -52,8 +53,6 @@
# define GLOG_OS_OPENBSD
#elif defined(__EMSCRIPTEN__)
# define GLOG_OS_EMSCRIPTEN
#elif defined(__ANDROID__)
# define GLOG_OS_ANDROID
#else
// TODO(hamaji): Add other platforms.
#error Platform not supported by glog. Please consider to contribute platform information by submitting a pull request on Github.
Expand Down

0 comments on commit ec986f3

Please sign in to comment.