12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- #ifndef CERES_PUBLIC_INTERNAL_PORT_H_
- #define CERES_PUBLIC_INTERNAL_PORT_H_
- #if defined(_MSC_VER)
- #define CERES_DEPRECATED_WITH_MSG(message) __declspec(deprecated(message))
- #elif defined(__GNUC__)
- #define CERES_DEPRECATED_WITH_MSG(message) __attribute__((deprecated(message)))
- #else
- #define CERES_DEPRECATED_WITH_MSG(message) [[deprecated(message)]]
- #endif
- #ifndef CERES_GET_FLAG
- #define CERES_GET_FLAG(X) X
- #endif
- #ifndef CERES_HAS_CPP20
- #if __cplusplus >= 202002L || (defined(_MSVC_LANG) && _MSVC_LANG >= 202002L)
- #define CERES_HAS_CPP20
- #endif
-
- #endif
- #define CERES_PREVENT_MACRO_SUBSTITUTION
- #if defined(_MSC_VER)
- #define CERES_DISABLE_DEPRECATED_WARNING \
- _Pragma("warning(push)") _Pragma("warning(disable : 4996)")
- #define CERES_RESTORE_DEPRECATED_WARNING _Pragma("warning(pop)")
- #else
- #define CERES_DISABLE_DEPRECATED_WARNING
- #define CERES_RESTORE_DEPRECATED_WARNING
- #endif
- #endif
|