[uim-commit] r1853 - trunk/xim

ekato at freedesktop.org ekato at freedesktop.org
Mon Oct 17 05:55:48 PDT 2005


Author: ekato
Date: 2005-10-17 05:55:39 -0700 (Mon, 17 Oct 2005)
New Revision: 1853

Modified:
   trunk/xim/canddisp.cpp
   trunk/xim/helper.cpp
   trunk/xim/locale.cpp
   trunk/xim/main.cpp
   trunk/xim/ximserver.cpp
Log:
* xim/locale.cpp : Define _GNU_SOURCE at the top.
* xim/helper.cpp : Ditto.
* xim/ximserver.cpp : Ditto.
* xim/main.cpp : Ditto.
* xim/canddisop.cpp : Ditto.


Modified: trunk/xim/canddisp.cpp
===================================================================
--- trunk/xim/canddisp.cpp	2005-10-17 10:16:33 UTC (rev 1852)
+++ trunk/xim/canddisp.cpp	2005-10-17 12:55:39 UTC (rev 1853)
@@ -30,13 +30,12 @@
   SUCH DAMAGE.
 */
 
+#define _GNU_SOURCE // for asprintf on stdio.h with old glibc/gcc
+
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
 #include <stdlib.h>
 #include <stdio.h>
 #include <sys/types.h>

Modified: trunk/xim/helper.cpp
===================================================================
--- trunk/xim/helper.cpp	2005-10-17 10:16:33 UTC (rev 1852)
+++ trunk/xim/helper.cpp	2005-10-17 12:55:39 UTC (rev 1853)
@@ -32,13 +32,12 @@
 
 // uim-helper connection
 
+#define _GNU_SOURCE // for asprintf on stdio.h with old glibc/gcc
+
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>

Modified: trunk/xim/locale.cpp
===================================================================
--- trunk/xim/locale.cpp	2005-10-17 10:16:33 UTC (rev 1852)
+++ trunk/xim/locale.cpp	2005-10-17 12:55:39 UTC (rev 1853)
@@ -32,13 +32,12 @@
 
 // Locale dependent routines
 
+#define _GNU_SOURCE // for asprintf on stdio.h with old glibc/gcc
+
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
 #include <stdio.h>
 #include <locale.h>
 #include <iconv.h>

Modified: trunk/xim/main.cpp
===================================================================
--- trunk/xim/main.cpp	2005-10-17 10:16:33 UTC (rev 1852)
+++ trunk/xim/main.cpp	2005-10-17 12:55:39 UTC (rev 1853)
@@ -32,14 +32,13 @@
 
 // XIM Server supporting CJK languages
 // initialize many modules
-//
+
+#define _GNU_SOURCE // for asprintf on stdio.h with old glibc/gcc
+
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE
-#endif
 #include <stdio.h>
 #include <string.h>
 #include <locale.h>

Modified: trunk/xim/ximserver.cpp
===================================================================
--- trunk/xim/ximserver.cpp	2005-10-17 10:16:33 UTC (rev 1852)
+++ trunk/xim/ximserver.cpp	2005-10-17 12:55:39 UTC (rev 1853)
@@ -30,13 +30,12 @@
   SUCH DAMAGE.
 */
 
+#define _GNU_SOURCE // for asprintf on stdio.h with old glibc/gcc
+
 #ifdef HAVE_CONFIG_H
 # include "config.h"
 #endif
 
-#ifndef _GNU_SOURCE
-#define _GNU_SOURCE 
-#endif
 #include <stdio.h>
 #include <ctype.h>
 #include <locale.h>



More information about the uim-commit mailing list