Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/gpdf-g-switch.h
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/xpdf/gpdf-g-switch.h')
-rw-r--r--pdf/xpdf/gpdf-g-switch.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/pdf/xpdf/gpdf-g-switch.h b/pdf/xpdf/gpdf-g-switch.h
new file mode 100644
index 0000000..bc38800
--- /dev/null
+++ b/pdf/xpdf/gpdf-g-switch.h
@@ -0,0 +1,22 @@
+/*
+ * When including goo and glib headers in one file:
+ *
+ * #include "GList.h"
+ * #include "gpdf-g-switch.h"
+ * #include "glib.h"
+ * < more glib/gtk+/gnome headers >
+ * #include "gpdf-g-switch.h"
+ */
+
+
+#ifdef GPDF_GOO
+# undef GString
+# undef GList
+# undef GDir
+# undef GPDF_GOO
+#else
+# define GString G_String
+# define GList G_List
+# define GDir G_Dir
+# define GPDF_GOO
+#endif