[PATCH v2 libXaw3d] Add conditional include config.h to source files as done in libXaw

Gaetan Nadon memsize at videotron.ca
Fri Sep 2 10:36:22 PDT 2011


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 at videotron.ca>
---
	Fix TextSink.c

 src/AllWidgets.c |    3 +++
 src/AsciiSink.c  |    3 +++
 src/AsciiSrc.c   |    3 +++
 src/AsciiText.c  |    3 +++
 src/Box.c        |    3 +++
 src/Command.c    |    3 +++
 src/Form.c       |    3 +++
 src/Grip.c       |    3 +++
 src/Label.c      |    3 +++
 src/Layout.c     |    3 +++
 src/List.c       |    3 +++
 src/MenuButton.c |    3 +++
 src/MultiSink.c  |    3 +++
 src/MultiSrc.c   |    3 +++
 src/Paned.c      |    3 +++
 src/Panner.c     |    3 +++
 src/Porthole.c   |    3 +++
 src/Repeater.c   |    3 +++
 src/Scrollbar.c  |    3 +++
 src/Simple.c     |    3 +++
 src/SimpleMenu.c |    3 +++
 src/Sme.c        |    3 +++
 src/SmeBSB.c     |    3 +++
 src/SmeLine.c    |    3 +++
 src/SmeThreeD.c  |    3 +++
 src/StripChart.c |    3 +++
 src/Template.c   |    3 +++
 src/Text.c       |    3 +++
 src/TextAction.c |    3 +++
 src/TextPop.c    |    3 +++
 src/TextSink.c   |    3 +++
 src/TextSrc.c    |    3 +++
 src/ThreeD.c     |    3 +++
 src/Tip.c        |    3 +++
 src/Toggle.c     |    3 +++
 src/Tree.c       |    3 +++
 src/Vendor.c     |    3 +++
 src/Viewport.c   |    3 +++
 src/Xaw3dP.c     |    3 +++
 src/XawI18n.c    |    3 +++
 src/XawIm.c      |    3 +++
 src/XawInit.c    |    3 +++
 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
diff --git a/src/Box.c b/src/Box.c
index 7b3e6b2..ccd52fd 100644
--- a/src/Box.c
+++ b/src/Box.c
@@ -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
  */
diff --git a/src/Form.c b/src/Form.c
index 5a6d451..49fceb6 100644
--- a/src/Form.c
+++ b/src/Form.c
@@ -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>
diff --git a/src/Grip.c b/src/Grip.c
index bfac850..3873a5a 100644
--- a/src/Grip.c
+++ b/src/Grip.c
@@ -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>
 
diff --git a/src/List.c b/src/List.c
index b9042ca..b491000 100644
--- a/src/List.c
+++ b/src/List.c
@@ -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 at 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 at expo.lcs.mit.edu
  */
 
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
 #include <stdio.h>
 #include <limits.h>
 #include <X11/IntrinsicP.h>
diff --git a/src/Sme.c b/src/Sme.c
index dd563e8..f105253 100644
--- a/src/Sme.c
+++ b/src/Sme.c
@@ -33,6 +33,9 @@ in this Software without prior written authorization from the X Consortium.
  *          kit at 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 at 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 at 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"
diff --git a/src/Text.c b/src/Text.c
index 93502ff..1873016 100644
--- a/src/Text.c
+++ b/src/Text.c
@@ -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>
diff --git a/src/Tip.c b/src/Tip.c
index aee94a1..6881670 100644
--- a/src/Tip.c
+++ b/src/Tip.c
@@ -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>
diff --git a/src/Tree.c b/src/Tree.c
index 2f31aa1..3c02b53 100644
--- a/src/Tree.c
+++ b/src/Tree.c
@@ -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>
-- 
1.7.4.1



More information about the xorg-devel mailing list