android.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /*
  2. Copyright Rene Rivera 2015-2019
  3. Distributed under the Boost Software License, Version 1.0.
  4. (See accompanying file LICENSE_1_0.txt or copy at
  5. http://www.boost.org/LICENSE_1_0.txt)
  6. */
  7. #ifndef BHO_PREDEF_PLAT_ANDROID_H
  8. #define BHO_PREDEF_PLAT_ANDROID_H
  9. #include <asio2/bho/predef/version_number.h>
  10. #include <asio2/bho/predef/make.h>
  11. /* tag::reference[]
  12. = `BHO_PLAT_ANDROID`
  13. http://en.wikipedia.org/wiki/Android_%28operating_system%29[Android] platform.
  14. [options="header"]
  15. |===
  16. | {predef_symbol} | {predef_version}
  17. | `+__ANDROID__+` | {predef_detection}
  18. |===
  19. */ // end::reference[]
  20. #define BHO_PLAT_ANDROID BHO_VERSION_NUMBER_NOT_AVAILABLE
  21. #if defined(__ANDROID__)
  22. # undef BHO_PLAT_ANDROID
  23. # define BHO_PLAT_ANDROID BHO_VERSION_NUMBER_AVAILABLE
  24. #endif
  25. #if BHO_PLAT_ANDROID
  26. # define BHO_PLAT_ANDROID_AVAILABLE
  27. # include <asio2/bho/predef/detail/platform_detected.h>
  28. #endif
  29. #define BHO_PLAT_ANDROID_NAME "Android"
  30. #endif
  31. #include <asio2/bho/predef/detail/test.h>
  32. BHO_PREDEF_DECLARE_TEST(BHO_PLAT_ANDROID,BHO_PLAT_ANDROID_NAME)