GoogleMobileAdsDefines.h 1.0 KB

123456789101112131415161718192021222324252627282930
  1. //
  2. // GoogleMobileAdsDefines.h
  3. // Google Mobile Ads SDK
  4. //
  5. // Copyright (c) 2015 Google Inc. All rights reserved.
  6. //
  7. #if defined(__cplusplus)
  8. #define GAD_EXTERN extern "C" __attribute__((visibility("default")))
  9. #else
  10. #define GAD_EXTERN extern __attribute__((visibility("default")))
  11. #endif // defined(__cplusplus)
  12. #if defined(__has_feature) && defined(__has_attribute)
  13. #if __has_feature(attribute_GAD_DEPRECATED_with_message)
  14. #define GAD_DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated(s)))
  15. #elif __has_attribute(deprecated)
  16. #define GAD_DEPRECATED_MSG_ATTRIBUTE(s) __attribute__((deprecated))
  17. #else
  18. #define GAD_DEPRECATED_MSG_ATTRIBUTE(s)
  19. #endif // __has_feature(attribute_GAD_DEPRECATED_with_message)
  20. #if __has_attribute(deprecated)
  21. #define GAD_DEPRECATED_ATTRIBUTE __attribute__((deprecated))
  22. #else
  23. #define GAD_DEPRECATED_ATTRIBUTE
  24. #endif // __has_attribute(deprecated)
  25. #else
  26. #define GAD_DEPRECATED_ATTRIBUTE
  27. #define GAD_DEPRECATED_MSG_ATTRIBUTE(s)
  28. #endif // defined(__has_feature) && defined(__has_attribute)