[uim-commit] r1500 - trunk/xim
ekato at freedesktop.org
ekato at freedesktop.org
Wed Sep 14 23:44:51 PDT 2005
Author: ekato
Date: 2005-09-14 23:44:46 -0700 (Wed, 14 Sep 2005)
New Revision: 1500
Modified:
trunk/xim/canddisp.cpp
Log:
* xim/canddisp.cpp : Define _GNU_SOURCE in order to use asprintf()
with some buggy glibc version. Define DEFAULT_CANDWIN_PROG as
NULL if no GUI frontend is available.
Modified: trunk/xim/canddisp.cpp
===================================================================
--- trunk/xim/canddisp.cpp 2005-09-15 03:34:24 UTC (rev 1499)
+++ trunk/xim/canddisp.cpp 2005-09-15 06:44:46 UTC (rev 1500)
@@ -34,6 +34,9 @@
# include "config.h"
#endif
+#ifndef _GNU_SOURCE
+#define _GNU_SOURCE
+#endif
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
@@ -56,6 +59,8 @@
#define DEFAULT_CANDWIN_PROG (UIM_LIBEXECDIR "/uim-candwin-qt")
#elif defined(USE_GTK_CANDWIN) && defined(USE_GTK2)
#define DEFAULT_CANDWIN_PROG (UIM_LIBEXECDIR "/uim-candwin-gtk")
+#else
+ #define DEFAULT_CANDWIN_PROG NULL
#endif
static FILE *candwin_r, *candwin_w;
More information about the uim-commit
mailing list