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:
@@ -78,15 +78,18 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_MSCVER)
|
#if defined(_MSCVER)
|
||||||
#define DEPRECATED(msg) __declspec(deprecated(msg))
|
# define DEPRECATED(msg) __declspec(deprecated(msg))
|
||||||
#elif defined(__GNUC__) || defined(__clang__)
|
#elif defined(__GNUC__)
|
||||||
#if GCC_VERSION >= 40500
|
# include <features.h>
|
||||||
#define DEPRECATED(msg) __attribute__ ((deprecated(msg)))
|
# if __GNUC_PREREQ(4,5)
|
||||||
#else
|
# define DEPRECATED(msg) __attribute__ ((deprecated(msg)))
|
||||||
#define DEPRECATED(msg) __attribute__ ((deprecated))
|
# else
|
||||||
#endif
|
# define DEPRECATED(msg) __attribute__ ((deprecated))
|
||||||
|
# endif
|
||||||
|
#elif defined(__clang__)
|
||||||
|
# define DEPRECATED(msg) __attribute__ ((deprecated(msg)))
|
||||||
#else
|
#else
|
||||||
#define DEPRECATED(msg)
|
# define DEPRECATED(msg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef unsigned int uint;
|
typedef unsigned int uint;
|
||||||
|
|||||||
Reference in New Issue
Block a user