[pango] Provide a phony define for the LANGUAGE macro



commit b1d54a4178eeab6e7c7f96fd38bb9ebc2caae46e
Author: John Ralls <jralls ceridwen us>
Date:   Mon Nov 12 19:40:09 2012 -0800

    Provide a phony define for the LANGUAGE macro
    
    Gobject-introspection encounters it without the definitions in the
    including code and fails.

 pango/pango-language-sample-table.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/pango/pango-language-sample-table.h b/pango/pango-language-sample-table.h
index a3ae0c6..2c79387 100644
--- a/pango/pango-language-sample-table.h
+++ b/pango/pango-language-sample-table.h
@@ -49,6 +49,10 @@
  *
  * Needless to say, the list MUST be sorted on the language code.
  */
+/* Sacrificial define to make introspection happy. */
+#ifndef LANGUAGE(x, y, z)
+#define LANGUAGE(x, y, z)
+#endif
 LANGUAGE(
 	 af	/* Afrikaans */,
 	 GLASS,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]