aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel M. Weeks <dan@danweeks.net>2015-04-08 20:00:00 -0400
committerCarbenium <keresztesschmidt@gmail.com>2015-04-15 19:29:35 +0200
commit67faa0f458aa0bd3ef939f527ac6406f0b4ff56c (patch)
tree77c9d0193b294d31525afdae7aaf5fe00741b9fe /src
parentdf4b175d689fa99aa3876a2c26bb24ba09970a98 (diff)
Prevent collisions in GCC attribute definitions
(cherry picked from commit 64848856002a796e30b822d70a31087495084bfa)
Diffstat (limited to 'src')
-rw-r--r--src/server/shared/Define.h6
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)