diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2009-03-19 08:32:36 +0100 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2009-03-19 08:32:36 +0100 |
commit | 9843f44f58e10fd322c27fd27f2df066b17f7a0b (patch) | |
tree | 3f6e2e71da10956c50f1c77ac63829bec04c3981 /include/wolf/port/sys.h | |
parent | b218bba5a52f6e206b4a557bed83b11a0bc6b6d6 (diff) | |
download | wolfbones-9843f44f58e10fd322c27fd27f2df066b17f7a0b.tar.gz wolfbones-9843f44f58e10fd322c27fd27f2df066b17f7a0b.tar.bz2 |
fixed GCC_VERSION string
Diffstat (limited to 'include/wolf/port/sys.h')
-rw-r--r-- | include/wolf/port/sys.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wolf/port/sys.h b/include/wolf/port/sys.h index 8dc8f02..cfc475d 100644 --- a/include/wolf/port/sys.h +++ b/include/wolf/port/sys.h @@ -202,8 +202,13 @@ #if defined _MSC_VER #endif /* defined _MSC_VER */ +/* define one version string for comparing GNU c versions */ #if defined __GNUC__ +#if defined __GNUC_PATCHLEVEL__ #define GCC_VERSION ( __GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__ ) +#else +#define GCC_VERSION ( __GNUC__ * 10000 + __GNUC_MINOR__ * 100 ) +#endif #endif #if defined __INTEL_COMPILER |