Renamed DEPRECATED to SW_DEPRECATED to avoid name conflicts
This commit is contained in:
parent
8598036b73
commit
c52ebc2e60
2 changed files with 6 additions and 6 deletions
|
|
@ -12,13 +12,13 @@
|
|||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
#ifndef DEPRECATED
|
||||
#ifndef SW_DEPRECATED
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define DEPRECATED __attribute__((deprecated))
|
||||
#define SW_DEPRECATED __attribute__((deprecated))
|
||||
#elif defined(_MSC_VER)
|
||||
#define DEPRECATED __declspec(deprecated)
|
||||
#define SW_DEPRECATED __declspec(deprecated)
|
||||
#else
|
||||
#define DEPRECATED
|
||||
#define SW_DEPRECATED
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue