Commit 29335262 authored by Hans-Christian Ebke's avatar Hans-Christian Ebke

Fixing GCC deprecated attribute feature test.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@901 fdac6126-5c0c-442c-9429-916003d36597
parent 49125a05
......@@ -78,15 +78,18 @@
#endif
#if defined(_MSCVER)
#define DEPRECATED(msg) __declspec(deprecated(msg))
#elif defined(__GNUC__) || defined(__clang__)
#if GCC_VERSION >= 40500
#define DEPRECATED(msg) __attribute__ ((deprecated(msg)))
#else
#define DEPRECATED(msg) __attribute__ ((deprecated))
#endif
# define DEPRECATED(msg) __declspec(deprecated(msg))
#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)
# define DEPRECATED(msg)
#endif
typedef unsigned int uint;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment