From d5ad0b3b3a49b5975bac5809376e2e60b5f2b370 Mon Sep 17 00:00:00 2001 From: handa Date: Mon, 5 Sep 2005 00:32:56 +0000 Subject: [PATCH] Check HAVE_X11. --- src/m17n-X.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/m17n-X.c b/src/m17n-X.c index 1170067..e203254 100644 --- a/src/m17n-X.c +++ b/src/m17n-X.c @@ -20,12 +20,14 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. */ +#include "config.h" + +#ifdef HAVE_X11 + #if !defined (FOR_DOXYGEN) || defined (DOXYGEN_INTERNAL_MODULE) /*** @addtogroup m17nInternal @{ */ -#include "config.h" - #include #include #include @@ -2506,6 +2508,12 @@ MInputDriver minput_xim_driver = /*** @} */ +#else /* not HAVE_X11 */ + +int device_open () { return -1; } + +#endif /* not HAVE_X11 */ + /* Local Variables: coding: euc-japan -- 1.7.10.4