Revision: 820
http://sourceforge.net/p/polserver/code/820
Author: turley
Date: 2014-06-14 08:19:18 +0000 (Sat, 14 Jun 2014)
Log Message:
-----------
fixed compilation with gcc 4.7
Modified Paths:
--------------
trunk/pol-core/clib/compilerspecifics.h
Modified: trunk/pol-core/clib/compilerspecifics.h
===================================================================
--- trunk/pol-core/clib/compilerspecifics.h 2014-06-14 07:58:33 UTC (rev 819)
+++ trunk/pol-core/clib/compilerspecifics.h 2014-06-14 08:19:18 UTC (rev 820)
@@ -17,7 +17,17 @@
# ifdef _MSC_VER
# define POL_NORETURN _declspec(noreturn)
# else
-# define POL_NORETURN [[noreturn]]
+# ifdef __GNUC__
+# define POL__GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__)
+# if POL__GCC_VERSION <= 407
+# define POL_NORETURN __attribute__((noreturn))
+# else
+# define POL_NORETURN [[noreturn]]
+# endif
+# undef POL__GCC_VERSION
+# else
+# define POL_NORETURN [[noreturn]]
+# endif
# endif
#endif
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|