diff options
author | Daniel M. Weeks <dan@danweeks.net> | 2015-04-08 20:00:00 -0400 |
---|---|---|
committer | Carbenium <keresztesschmidt@gmail.com> | 2015-04-15 19:29:35 +0200 |
commit | 67faa0f458aa0bd3ef939f527ac6406f0b4ff56c (patch) | |
tree | 77c9d0193b294d31525afdae7aaf5fe00741b9fe /src | |
parent | df4b175d689fa99aa3876a2c26bb24ba09970a98 (diff) |
Prevent collisions in GCC attribute definitions
(cherry picked from commit 64848856002a796e30b822d70a31087495084bfa)
Diffstat (limited to 'src')
-rw-r--r-- | src/server/shared/Define.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/shared/Define.h b/src/server/shared/Define.h index add7995ad8f..97e07cef8b3 100644 --- a/src/server/shared/Define.h +++ b/src/server/shared/Define.h @@ -78,9 +78,9 @@ #endif //!COREDEBUG #if COMPILER == COMPILER_GNU -# define ATTR_NORETURN __attribute__((noreturn)) -# define ATTR_PRINTF(F, V) __attribute__ ((format (printf, F, V))) -# define ATTR_DEPRECATED __attribute__((deprecated)) +# define ATTR_NORETURN __attribute__((__noreturn__)) +# define ATTR_PRINTF(F, V) __attribute__ ((__format__ (__printf__, F, V))) +# define ATTR_DEPRECATED __attribute__((__deprecated__)) #else //COMPILER != COMPILER_GNU # define ATTR_NORETURN # define ATTR_PRINTF(F, V) |