diff options
author | Gaetan Nadon <memsize@videotron.ca> | 2011-09-02 10:31:39 -0400 |
---|---|---|
committer | Gaetan Nadon <memsize@videotron.ca> | 2011-09-04 21:01:25 -0400 |
commit | 823803d5937e1002d21e24b2a37ad2891e691527 (patch) | |
tree | 6e3b4e98061468c9121ab04cf48c4d7c6ceb0b1a /src | |
parent | c1918447b25e0ac2f4fc5311bb6a8527cf74d168 (diff) |
Add conditional include config.h to source files as done in libXaw
Expections: TexTr.c, sharedlib.c ans generated lex and yacc C code.
XawI18n.h needs HAVE_WCTYPE_H and HAVE_WCHAR_H.
Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'src')
42 files changed, 126 insertions, 0 deletions
diff --git a/src/AllWidgets.c b/src/AllWidgets.c index a31976b..57a485f 100644 --- a/src/AllWidgets.c +++ b/src/AllWidgets.c @@ -25,6 +25,9 @@ in this Software without prior written authorization from the X Consortium. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/IntrinsicP.h> #include <X11/Xmu/WidgetNode.h> diff --git a/src/AsciiSink.c b/src/AsciiSink.c index 5d5d959..c14306e 100644 --- a/src/AsciiSink.c +++ b/src/AsciiSink.c @@ -46,6 +46,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <stdio.h> #include <X11/Xatom.h> diff --git a/src/AsciiSrc.c b/src/AsciiSrc.c index 0665cd3..7df327d 100644 --- a/src/AsciiSrc.c +++ b/src/AsciiSrc.c @@ -30,6 +30,9 @@ in this Software without prior written authorization from the X Consortium. * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <X11/IntrinsicP.h> #include <stdio.h> diff --git a/src/AsciiText.c b/src/AsciiText.c index 23843ac..5e4417b 100644 --- a/src/AsciiText.c +++ b/src/AsciiText.c @@ -46,6 +46,9 @@ SOFTWARE. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /*********************************************************************** * * AsciiText Widget @@ -46,6 +46,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* * Box.c - Box composite widget diff --git a/src/Command.c b/src/Command.c index ccde19b..26a40fa 100644 --- a/src/Command.c +++ b/src/Command.c @@ -46,6 +46,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* * Command.c - Command button widget */ @@ -46,6 +46,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> #include <X11/Xmu/Converters.h> @@ -46,6 +46,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* * Grip.c - Grip Widget (Used by Paned Widget) * diff --git a/src/Label.c b/src/Label.c index a8fdddf..c3f8e17 100644 --- a/src/Label.c +++ b/src/Label.c @@ -46,6 +46,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* * Label.c - Label widget * diff --git a/src/Layout.c b/src/Layout.c index 398d9ac..c98bd39 100644 --- a/src/Layout.c +++ b/src/Layout.c @@ -21,6 +21,9 @@ * Author: Keith Packard, MIT X Consortium */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> @@ -34,6 +34,9 @@ in this Software without prior written authorization from the X Consortium. * MIT X Consortium */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <stdio.h> #include <ctype.h> diff --git a/src/MenuButton.c b/src/MenuButton.c index ac821b1..4407d6b 100644 --- a/src/MenuButton.c +++ b/src/MenuButton.c @@ -44,6 +44,9 @@ in this Software without prior written authorization from the X Consortium. * kit@expo.lcs.mit.edu */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <stdio.h> #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> diff --git a/src/MultiSink.c b/src/MultiSink.c index 6ac1a01..22f86a5 100644 --- a/src/MultiSink.c +++ b/src/MultiSink.c @@ -70,6 +70,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> #include <X11/Xatom.h> diff --git a/src/MultiSrc.c b/src/MultiSrc.c index 7457732..b53fa50 100644 --- a/src/MultiSrc.c +++ b/src/MultiSrc.c @@ -58,6 +58,9 @@ in this Software without prior written authorization from the X Consortium. * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> diff --git a/src/Paned.c b/src/Paned.c index c7962c6..aa925b6 100644 --- a/src/Paned.c +++ b/src/Paned.c @@ -46,6 +46,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* * Paned.c - Paned Composite Widget. * diff --git a/src/Panner.c b/src/Panner.c index ee9543f..f608ff9 100644 --- a/src/Panner.c +++ b/src/Panner.c @@ -25,6 +25,9 @@ in this Software without prior written authorization from the X Consortium. * Author: Jim Fulton, MIT X Consortium */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> /* for XtN and XtC defines */ #include <X11/Xmu/CharSet.h> /* for XmuCompareISOLatin1() */ diff --git a/src/Porthole.c b/src/Porthole.c index 3d05089..feedff3 100644 --- a/src/Porthole.c +++ b/src/Porthole.c @@ -28,6 +28,9 @@ in this Software without prior written authorization from the X Consortium. * panner or scrollbar to navigate. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> /* get XtN and XtC defines */ #include <X11/Xaw3d/XawInit.h> /* get Xaw initialize stuff */ diff --git a/src/Repeater.c b/src/Repeater.c index 02aa70e..fe68299 100644 --- a/src/Repeater.c +++ b/src/Repeater.c @@ -27,6 +27,9 @@ in this Software without prior written authorization from the X Consortium. * This widget is used for press-and-hold style buttons. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> /* for XtN and XtC defines */ #include <X11/Xaw3d/XawInit.h> /* for XawInitializeWidgetSet() */ diff --git a/src/Scrollbar.c b/src/Scrollbar.c index 7fba176..02eb980 100644 --- a/src/Scrollbar.c +++ b/src/Scrollbar.c @@ -56,6 +56,9 @@ SOFTWARE. /* created by weissman, Mon Jul 7 13:20:03 1986 */ /* converted by swick, Thu Aug 27 1987 */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <X11/IntrinsicP.h> diff --git a/src/Simple.c b/src/Simple.c index f5928b3..eeb3164 100644 --- a/src/Simple.c +++ b/src/Simple.c @@ -46,6 +46,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <stdio.h> #include <X11/IntrinsicP.h> diff --git a/src/SimpleMenu.c b/src/SimpleMenu.c index 2dd31e8..b0776f2 100644 --- a/src/SimpleMenu.c +++ b/src/SimpleMenu.c @@ -33,6 +33,9 @@ in this Software without prior written authorization from the X Consortium. * kit@expo.lcs.mit.edu */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <stdio.h> #include <limits.h> #include <X11/IntrinsicP.h> @@ -33,6 +33,9 @@ in this Software without prior written authorization from the X Consortium. * kit@expo.lcs.mit.edu */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <stdio.h> #include <X11/IntrinsicP.h> diff --git a/src/SmeBSB.c b/src/SmeBSB.c index 24bac63..5a18003 100644 --- a/src/SmeBSB.c +++ b/src/SmeBSB.c @@ -38,6 +38,9 @@ in this Software without prior written authorization from the X Consortium. * kit@expo.lcs.mit.edu */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> diff --git a/src/SmeLine.c b/src/SmeLine.c index 722feec..16fbb50 100644 --- a/src/SmeLine.c +++ b/src/SmeLine.c @@ -35,6 +35,9 @@ in this Software without prior written authorization from the X Consortium. * kit@expo.lcs.mit.edu */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <stdio.h> #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> diff --git a/src/SmeThreeD.c b/src/SmeThreeD.c index 095677c..99fa486 100644 --- a/src/SmeThreeD.c +++ b/src/SmeThreeD.c @@ -23,6 +23,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <X11/Xlib.h> #include <X11/StringDefs.h> diff --git a/src/StripChart.c b/src/StripChart.c index 3d3c81d..83fb87c 100644 --- a/src/StripChart.c +++ b/src/StripChart.c @@ -46,6 +46,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <stdio.h> #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> diff --git a/src/Template.c b/src/Template.c index b7168c5..88b306c 100644 --- a/src/Template.c +++ b/src/Template.c @@ -25,6 +25,9 @@ in this Software without prior written authorization from the X Consortium. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> #include "TemplateP.h" @@ -46,6 +46,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> diff --git a/src/TextAction.c b/src/TextAction.c index e600996..1de645a 100644 --- a/src/TextAction.c +++ b/src/TextAction.c @@ -25,6 +25,9 @@ in this Software without prior written authorization from the X Consortium. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> diff --git a/src/TextPop.c b/src/TextPop.c index cf94074..5233f30 100644 --- a/src/TextPop.c +++ b/src/TextPop.c @@ -46,6 +46,9 @@ in this Software without prior written authorization from the X Consortium. * *************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> diff --git a/src/TextSink.c b/src/TextSink.c index 959c715..4d69910 100644 --- a/src/TextSink.c +++ b/src/TextSink.c @@ -36,6 +36,9 @@ in this Software without prior written authorization from the X Consortium. * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <stdio.h> #include <ctype.h> #include <X11/IntrinsicP.h> diff --git a/src/TextSrc.c b/src/TextSrc.c index ed9bc3f..afe8bc0 100644 --- a/src/TextSrc.c +++ b/src/TextSrc.c @@ -35,6 +35,9 @@ in this Software without prior written authorization from the X Consortium. * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> diff --git a/src/ThreeD.c b/src/ThreeD.c index 04273cc..754b6e2 100644 --- a/src/ThreeD.c +++ b/src/ThreeD.c @@ -28,6 +28,9 @@ SOFTWARE. * Rights, permissions, and disclaimer per the above DEC/MIT license. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <X11/Xlib.h> #include <X11/StringDefs.h> @@ -32,6 +32,9 @@ * Rights, permissions, and disclaimer per the above XFree86 license. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> diff --git a/src/Toggle.c b/src/Toggle.c index 7ae375a..533c659 100644 --- a/src/Toggle.c +++ b/src/Toggle.c @@ -36,6 +36,9 @@ in this Software without prior written authorization from the X Consortium. * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <stdio.h> #include <X11/IntrinsicP.h> @@ -48,6 +48,9 @@ in this Software without prior written authorization from the X Consortium. * as well as to support vertical trees. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> #include <X11/Xaw3d/XawInit.h> diff --git a/src/Vendor.c b/src/Vendor.c index 07af29b..8899cd1 100644 --- a/src/Vendor.c +++ b/src/Vendor.c @@ -46,6 +46,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif /* * Portions Copyright (c) 1996 Alfredo Kojima * Rights, permissions, and disclaimer per the above X Consortium license. diff --git a/src/Viewport.c b/src/Viewport.c index a103086..d8b1188 100644 --- a/src/Viewport.c +++ b/src/Viewport.c @@ -46,6 +46,9 @@ SOFTWARE. ******************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> diff --git a/src/Xaw3dP.c b/src/Xaw3dP.c index 0a9ece3..9cc58f6 100644 --- a/src/Xaw3dP.c +++ b/src/Xaw3dP.c @@ -27,6 +27,9 @@ CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. *********************************************************************/ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Xaw3d/Xaw3dP.h> #ifdef XAW_MULTIPLANE_PIXMAPS #include <stdio.h> diff --git a/src/XawI18n.c b/src/XawI18n.c index e628b97..ecb7b4f 100644 --- a/src/XawI18n.c +++ b/src/XawI18n.c @@ -53,6 +53,9 @@ in this Software without prior written authorization from the X Consortium. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <stdio.h> #include <stdlib.h> #include <X11/IntrinsicP.h> diff --git a/src/XawIm.c b/src/XawIm.c index 45d2e3c..92b92cd 100644 --- a/src/XawIm.c +++ b/src/XawIm.c @@ -52,6 +52,9 @@ in this Software without prior written authorization from the X Consortium. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/IntrinsicP.h> #include <X11/StringDefs.h> #include <X11/Xos.h> diff --git a/src/XawInit.c b/src/XawInit.c index 8b32742..5b73111 100644 --- a/src/XawInit.c +++ b/src/XawInit.c @@ -32,6 +32,9 @@ in this Software without prior written authorization from the X Consortium. * used as the class init proc). */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include <X11/Intrinsic.h> #include <X11/Vendor.h> #include <X11/Xaw3d/XawInit.h> |