mirror of
https://github.com/boostorg/beast.git
synced 2025-07-31 21:34:46 +02:00
Android: Use compiler pre-defined __ANDROID__
The ANDROID define us usually originationg from he build system (like CMake, ndk-build, etc.). But some buildsystems like Bazel do not set it which brakes Android platform detection. Better use __ANDROID__ (like boost predef does) which is predefined by the compiler if targeting Android.
This commit is contained in:
committed by
Vinnie Falco
parent
fdfd666e23
commit
0033b7c1e4
@@ -1,3 +1,9 @@
|
|||||||
|
Version 233:
|
||||||
|
|
||||||
|
* Check __ANDROID__ instead
|
||||||
|
|
||||||
|
--------------------------------------------------------------------------------
|
||||||
|
|
||||||
Version 232:
|
Version 232:
|
||||||
|
|
||||||
* Fix close_socket for net::basic_socket changes
|
* Fix close_socket for net::basic_socket changes
|
||||||
|
@@ -24,7 +24,7 @@
|
|||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
|
||||||
#if ! defined(BOOST_BEAST_NO_POSIX_FADVISE)
|
#if ! defined(BOOST_BEAST_NO_POSIX_FADVISE)
|
||||||
# if defined(__APPLE__) || (defined(ANDROID) && (__ANDROID_API__ < 21))
|
# if defined(__APPLE__) || (defined(__ANDROID__) && (__ANDROID_API__ < 21))
|
||||||
# define BOOST_BEAST_NO_POSIX_FADVISE
|
# define BOOST_BEAST_NO_POSIX_FADVISE
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user