diff options
author | oliver <oliver@FreeBSD.org> | 2011-06-07 21:37:19 +0800 |
---|---|---|
committer | oliver <oliver@FreeBSD.org> | 2011-06-07 21:37:19 +0800 |
commit | 9661426875878c4261eec9fe0c3ea8f43ef2753a (patch) | |
tree | 6217ba41993e2ad1fd6ac982c5ca4945247b90bb /x11-toolkits | |
parent | d43e8ae1303ff3df7c9a972cfb7cc37cbcf61783 (diff) | |
download | freebsd-ports-gnome-9661426875878c4261eec9fe0c3ea8f43ef2753a.tar.gz freebsd-ports-gnome-9661426875878c4261eec9fe0c3ea8f43ef2753a.tar.zst freebsd-ports-gnome-9661426875878c4261eec9fe0c3ea8f43ef2753a.zip |
fix compilation if gcc 4.5 or 4.6 are installed
PR: ports/153701
Submitted by: Sergei Arefiev <nbspjr@gmail.com>
Diffstat (limited to 'x11-toolkits')
-rw-r--r-- | x11-toolkits/gigi/files/patch-CG-adobe-cmath.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-toolkits/gigi/files/patch-CG-adobe-cmath.hpp b/x11-toolkits/gigi/files/patch-CG-adobe-cmath.hpp new file mode 100644 index 000000000000..b52e0ba26740 --- /dev/null +++ b/x11-toolkits/gigi/files/patch-CG-adobe-cmath.hpp @@ -0,0 +1,22 @@ + +--- GG/adobe/cmath.hpp.orig 2011-01-05 13:35:35.631436941 +0200 ++++ GG/adobe/cmath.hpp 2011-01-05 13:35:50.973926288 +0200 +@@ -37,14 +37,14 @@ + + #define ADOBE_HAS_CPP_CMATH + +-#elif ((__GNUC__ == 4) && (__GNUC_MINOR__ <= 4)) ++#elif ((__GNUC__ == 4) && (__GNUC_MINOR__ <= 6)) + /* + The currently supported version of GNUC has C99 extensions in math.h. But no TR1 extensions. + */ + #define ADOBE_HAS_C99_MATH_H + + #else +-#error "Unknown GCC compiler configuration for cmath (last known version is 4.0.1)." ++#error "Unknown GCC compiler configuration for cmath (last known version is 4.6.0)." + #endif + + #elif defined(_MSC_VER) + + |