Check HAVE_X11_XAW_COMMAND_H before including X11/*.h.
authorhanda <handa>
Mon, 5 Sep 2005 00:55:08 +0000 (00:55 +0000)
committerhanda <handa>
Mon, 5 Sep 2005 00:55:08 +0000 (00:55 +0000)
example/medit.c
example/mview.c

index 1dc78af..521c45d 100644 (file)
@@ -87,6 +87,8 @@
 
 #ifndef FOR_DOXYGEN
 
+#ifdef HAVE_X11_XAW_COMMAND_H
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <sys/types.h>
 #include <m17n-misc.h>
 #include <m17n-X.h>
 
-#ifdef HAVE_X11_XAW_COMMAND_H
-
 #include <X11/Xaw/Command.h>
 #include <X11/Xaw/Box.h>
 #include <X11/Xaw/Form.h>
index cd95901..8f1447f 100644 (file)
@@ -99,6 +99,8 @@
 */
 #ifndef FOR_DOXYGEN
 
+#ifdef HAVE_X11_XAW_COMMAND_H
+
 #include <stdio.h>
 
 #include <X11/Intrinsic.h>
 #include <m17n-misc.h>
 #include <m17n-X.h>
 
-#ifdef HAVE_X11_XAW_COMMAND_H
-
 #include <X11/Xaw/Form.h>
 #include <X11/Xaw/Command.h>
 #include <X11/Xaw/Viewport.h>