android.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. Copyright Rene Rivera 2015
  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 BOOST_PREDEF_OS_ANDROID_H
  8. #define BOOST_PREDEF_OS_ANDROID_H
  9. #include <boost/predef/version_number.h>
  10. #include <boost/predef/make.h>
  11. /*`
  12. [heading `BOOST_OS_ANDROID`]
  13. NOTE: `BOOST_OS_ANDROID` is deprecated, and will be removed in a following release.
  14. Please use `BOOST_PLAT_ANDROID` instead.
  15. [@http://en.wikipedia.org/wiki/Android_%28operating_system%29 Android] operating system.
  16. [table
  17. [[__predef_symbol__] [__predef_version__]]
  18. [[`__ANDROID__`] [__predef_detection__]]
  19. ]
  20. */
  21. #define BOOST_OS_ANDROID BOOST_VERSION_NUMBER_NOT_AVAILABLE
  22. #if !defined(BOOST_PREDEF_DETAIL_OS_DETECTED) && ( \
  23. defined(__ANDROID__) \
  24. )
  25. # undef BOOST_OS_ANDROID
  26. # define BOOST_OS_ANDROID BOOST_VERSION_NUMBER_AVAILABLE
  27. #endif
  28. #if BOOST_OS_ANDROID
  29. # define BOOST_OS_ANDROID_AVAILABLE
  30. # include <boost/predef/detail/os_detected.h>
  31. #endif
  32. #define BOOST_OS_ANDROID_NAME "Android"
  33. #endif
  34. #include <boost/predef/detail/test.h>
  35. BOOST_PREDEF_DECLARE_TEST(BOOST_OS_ANDROID,BOOST_OS_ANDROID_NAME)