Zserio C++ runtime library  1.0.2
Built for Zserio 2.14.1
DeprecatedAttribute.h
Go to the documentation of this file.
1 #ifndef ZSERIO_DEPRECATED_ATTRIBUTE_H_INC
2 #define ZSERIO_DEPRECATED_ATTRIBUTE_H_INC
3 
4 #if defined(__clang__)
5  #if __cplusplus >= 201703L
6  #define ZSERIO_DEPRECATED [[deprecated]]
7  #elif __clang_major__ >= 4
8  #define ZSERIO_DEPRECATED __attribute__((deprecated))
9  #endif
10 #elif defined(__GNUC__)
11  #if __cplusplus >= 201703L
12  #define ZSERIO_DEPRECATED [[deprecated]]
13  #elif __GNUC__ >= 6
14  #define ZSERIO_DEPRECATED __attribute__((deprecated))
15  #endif
16 #elif defined(_MSC_VER)
17  #if _MSC_VER >= 1900
18  #define ZSERIO_DEPRECATED [[deprecated]]
19  #endif
20 #endif
21 
22 #ifndef ZSERIO_DEPRECATED
23  // compiler not supported, define as an empty macro
24  #define ZSERIO_DEPRECATED
25 #endif
26 
27 #endif // ZSERIO_DEPRECATED_ATTRIBUTE_H_INC