Fixing GCC deprecated attribute feature test.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@901 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Hans-Christian Ebke
2013-08-07 10:25:03 +00:00
parent 49125a05d7
commit 29335262e4

View File

@@ -79,12 +79,15 @@
#if defined(_MSCVER)
# define DEPRECATED(msg) __declspec(deprecated(msg))
#elif defined(__GNUC__) || defined(__clang__)
#if GCC_VERSION >= 40500
#elif defined(__GNUC__)
# include <features.h>
# if __GNUC_PREREQ(4,5)
# define DEPRECATED(msg) __attribute__ ((deprecated(msg)))
# else
# define DEPRECATED(msg) __attribute__ ((deprecated))
# endif
#elif defined(__clang__)
# define DEPRECATED(msg) __attribute__ ((deprecated(msg)))
#else
# define DEPRECATED(msg)
#endif