android.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 MSGPACK_PREDEF_OS_ANDROID_H
  8. #define MSGPACK_PREDEF_OS_ANDROID_H
  9. #include <msgpack/predef/version_number.h>
  10. #include <msgpack/predef/make.h>
  11. /*`
  12. [heading `MSGPACK_OS_ANDROID`]
  13. [@http://en.wikipedia.org/wiki/Android_%28operating_system%29 Android] operating system.
  14. [table
  15. [[__predef_symbol__] [__predef_version__]]
  16. [[`__ANDROID__`] [__predef_detection__]]
  17. ]
  18. */
  19. #define MSGPACK_OS_ANDROID MSGPACK_VERSION_NUMBER_NOT_AVAILABLE
  20. #if !defined(MSGPACK_PREDEF_DETAIL_OS_DETECTED) && ( \
  21. defined(__ANDROID__) \
  22. )
  23. # undef MSGPACK_OS_ANDROID
  24. # define MSGPACK_OS_ANDROID MSGPACK_VERSION_NUMBER_AVAILABLE
  25. #endif
  26. #if MSGPACK_OS_ANDROID
  27. # define MSGPACK_OS_ANDROID_AVAILABLE
  28. # include <msgpack/predef/detail/os_detected.h>
  29. #endif
  30. #define MSGPACK_OS_ANDROID_NAME "Android"
  31. #endif
  32. #include <msgpack/predef/detail/test.h>
  33. MSGPACK_PREDEF_DECLARE_TEST(MSGPACK_OS_ANDROID,MSGPACK_OS_ANDROID_NAME)