summaryrefslogtreecommitdiff
path: root/pcr/glib/gcc340.patch
diff options
context:
space:
mode:
authorEsteban Carnevale <alfplayer@mailoo.org>2015-05-17 20:16:14 -0300
committerEsteban Carnevale <alfplayer@mailoo.org>2015-05-17 20:17:54 -0300
commit69ca18b1a204f340ec82a9c209ca2fe64ee36f12 (patch)
tree89485237ad0eb8e83a3f4b2d22730ce86c331b81 /pcr/glib/gcc340.patch
parent2bef1fef811e3f553f18a6dac1c32e4dfff7ae13 (diff)
downloadabslibre-69ca18b1a204f340ec82a9c209ca2fe64ee36f12.tar.gz
abslibre-69ca18b1a204f340ec82a9c209ca2fe64ee36f12.tar.bz2
abslibre-69ca18b1a204f340ec82a9c209ca2fe64ee36f12.zip
glib: add new package
Diffstat (limited to 'pcr/glib/gcc340.patch')
-rw-r--r--pcr/glib/gcc340.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/pcr/glib/gcc340.patch b/pcr/glib/gcc340.patch
new file mode 100644
index 000000000..941111ae7
--- /dev/null
+++ b/pcr/glib/gcc340.patch
@@ -0,0 +1,15 @@
+diff -Naur glib-1.2.10.orig/glib.h glib-1.2.10/glib.h
+--- glib-1.2.10.orig/glib.h 2001-02-27 04:44:38.000000000 +0100
++++ glib-1.2.10/glib.h 2004-05-27 15:50:32.436527848 +0200
+@@ -271,8 +271,10 @@
+
+ /* Wrap the gcc __PRETTY_FUNCTION__ and __FUNCTION__ variables with
+ * macros, so we can refer to them as strings unconditionally.
++ *
++ * Unfortunately these are _not_ treated as strings anymore in GCC3.4.
+ */
+-#ifdef __GNUC__
++#if defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ < 4)
+ #define G_GNUC_FUNCTION __FUNCTION__
+ #define G_GNUC_PRETTY_FUNCTION __PRETTY_FUNCTION__
+ #else /* !__GNUC__ */