Browse Source

Use more generic DEPRECATED macro

tags/v1.0.0
Andrew Belt 5 years ago
parent
commit
efce6546b6
1 changed files with 10 additions and 2 deletions
  1. +10
    -2
      include/common.hpp

+ 10
- 2
include/common.hpp View File

@@ -15,8 +15,16 @@
#include <string>


/** Deprecation notice for GCC */
#define DEPRECATED __attribute__ ((deprecated))
/** Deprecation notice for functions
E.g.
DEPRECATED void foo();
*/
#if defined(__GNUC__) || defined(__clang__)
#define DEPRECATED __attribute__ ((deprecated))
#elif defined(_MSC_VER)
#define DEPRECATED __declspec(deprecated)
#endif



/** Concatenates two literals or two macros


Loading…
Cancel
Save