From: handa Date: Mon, 5 Sep 2005 00:32:56 +0000 (+0000) Subject: Check HAVE_X11. X-Git-Tag: REL-1-3-0~196 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d5ad0b3b3a49b5975bac5809376e2e60b5f2b370;p=m17n%2Fm17n-lib.git Check HAVE_X11. --- 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