summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs/galib/files/galib-2.4.6-gcc4-gentoo.patch')
-rw-r--r--sci-libs/galib/files/galib-2.4.6-gcc4-gentoo.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/sci-libs/galib/files/galib-2.4.6-gcc4-gentoo.patch b/sci-libs/galib/files/galib-2.4.6-gcc4-gentoo.patch
new file mode 100644
index 000000000000..ed2621649eef
--- /dev/null
+++ b/sci-libs/galib/files/galib-2.4.6-gcc4-gentoo.patch
@@ -0,0 +1,23 @@
+diff -Naur galib246/ga/gaconfig.h galib246-new/ga/gaconfig.h
+--- galib246/ga/gaconfig.h 2005-01-31 10:46:09.000000000 -0500
++++ galib246-new/ga/gaconfig.h 2006-09-26 19:38:09.000000000 -0400
+@@ -192,7 +192,9 @@
+
+ // determine the compiler
+ #if defined(__GNUG__) || defined(__GNUC__)
+-#if __GNUC__ == 3
++#if __GNUC__ == 4
++#define GALIB_COMPILER "gcc4"
++#elif __GNUC__ == 3
+ #define GALIB_COMPILER "gcc3"
+ #elif __GNUC__ == 2
+ #define GALIB_COMPILER "gcc2"
+@@ -365,7 +367,7 @@
+ #define GALIB_USE_PID
+ #define GALIB_USE_EMPTY_TEMPLATES
+ #define GALIB_NEED_INSTANTIATION_PREFIX
+-#if __GNUC__ == 3
++#if __GNUC__ >= 3
+ #define GALIB_USE_ANSI_HEADERS
+ #define GALIB_USE_STD_NAMESPACE
+ #define GALIB_USE_COMP_OPERATOR_TEMPLATES