Commit 9076f9ec authored by Matthias Möller's avatar Matthias Möller

gcc version check based on compiler defines (fix for mingw)

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@913 fdac6126-5c0c-442c-9429-916003d36597
parent 116e0d85
......@@ -80,8 +80,7 @@
#if defined(_MSC_VER)
# define DEPRECATED(msg) __declspec(deprecated(msg))
#elif defined(__GNUC__)
# include <features.h>
# if __GNUC_PREREQ(4,5)
# if (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= 40500 /* Test for GCC >= 4.5.0 */
# define DEPRECATED(msg) __attribute__ ((deprecated(msg)))
# else
# define DEPRECATED(msg) __attribute__ ((deprecated))
......
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