diff --git a/codes/model-net.h b/codes/model-net.h index bf9b5c5f0b068507167dfa2cf97248f3001fa013..1e925a2d43538fe88440bd390edcf4ed3585150c 100644 --- a/codes/model-net.h +++ b/codes/model-net.h @@ -21,10 +21,12 @@ #define CATEGORY_MAX 12 // simple deprecation attribute hacking -#if defined(__GNUC__) || defined(__GNUG__) || defined(__clang__) -#define DEPRECATED __attribute__((deprecated)) -#else -#define DEPRECATED +#if !defined(DEPRECATED) +# if defined(__GNUC__) || defined(__GNUG__) || defined(__clang__) +# define DEPRECATED __attribute__((deprecated)) +# else +# define DEPRECATED +# endif #endif /* HACK: there is currently no scheduling fidelity across multiple