projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7b50b35
)
Check HAVE_X11_XAW_COMMAND_H, and if it not defined,
author
handa
<handa>
Thu, 28 Apr 2005 02:03:14 +0000
(
02:03
+0000)
committer
handa
<handa>
Thu, 28 Apr 2005 02:03:14 +0000
(
02:03
+0000)
add dummy code.
example/medit.c
patch
|
blob
|
history
example/mview.c
patch
|
blob
|
history
diff --git
a/example/medit.c
b/example/medit.c
index
5b6aacc
..
f59f0d9
100644
(file)
--- a/
example/medit.c
+++ b/
example/medit.c
@@
-102,6
+102,15
@@
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
+
+#include <m17n-gui.h>
+#include <m17n-misc.h>
+#include <m17n-X.h>
+
+#include <config.h>
+
+#ifdef HAVE_X11_XAW_COMMAND_H
+
#include <X11/Xaw/Command.h>
#include <X11/Xaw/Box.h>
#include <X11/Xaw/Form.h>
#include <X11/Xaw/Command.h>
#include <X11/Xaw/Box.h>
#include <X11/Xaw/Form.h>
@@
-113,10
+122,6
@@
#include <X11/Xaw/SmeLine.h>
#include <X11/Xaw/MenuButton.h>
#include <X11/Xaw/SmeLine.h>
#include <X11/Xaw/MenuButton.h>
-#include <m17n-gui.h>
-#include <m17n-misc.h>
-#include <m17n-X.h>
-
#define VERSION "1.2.0"
/* Global variables. */
#define VERSION "1.2.0"
/* Global variables. */
@@
-3096,4
+3101,17
@@
main (int argc, char **argv)
exit (0);
}
exit (0);
}
+
+#else /* not HAVE_X11_XAW_COMMAND_H */
+
+int
+main (int argc, char **argv)
+{
+ fprintf (stderr,
+ "Building of this program failed (lack of some header files)\n");
+ exit (1);
+}
+
+#endif /* not HAVE_X11_XAW_COMMAND_H */
+
#endif /* not FOR_DOXYGEN */
#endif /* not FOR_DOXYGEN */
diff --git
a/example/mview.c
b/example/mview.c
index
61aab92
..
dab7b66
100644
(file)
--- a/
example/mview.c
+++ b/
example/mview.c
@@
-104,14
+104,19
@@
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
#include <X11/Intrinsic.h>
#include <X11/StringDefs.h>
#include <X11/Shell.h>
-#include <X11/Xaw/Form.h>
-#include <X11/Xaw/Command.h>
-#include <X11/Xaw/Viewport.h>
#include <m17n-gui.h>
#include <m17n-misc.h>
#include <m17n-X.h>
#include <m17n-gui.h>
#include <m17n-misc.h>
#include <m17n-X.h>
+#include <config.h>
+
+#ifdef HAVE_X11_XAW_COMMAND_H
+
+#include <X11/Xaw/Form.h>
+#include <X11/Xaw/Command.h>
+#include <X11/Xaw/Viewport.h>
+
#define VERSION "1.2.0"
/* Global m17n variables. */
#define VERSION "1.2.0"
/* Global m17n variables. */
@@
-420,4
+425,17
@@
main (int argc, char **argv)
exit (0);
}
exit (0);
}
+
+#else /* not HAVE_X11_XAW_COMMAND_H */
+
+int
+main (int argc, char **argv)
+{
+ fprintf (stderr,
+ "Building of this program failed (lack of some header files)\n");
+ exit (1);
+}
+
+#endif /* not HAVE_X11_XAW_COMMAND_H */
+
#endif /* not FOR_DOXYGEN */
#endif /* not FOR_DOXYGEN */