summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorPaul Eggert <eggert@twinsun.com>1999-10-19 07:21:16 +0000
committerPaul Eggert <eggert@twinsun.com>1999-10-19 07:21:16 +0000
commit0f0912e6442b71ed549b625bfc694581787da97e (patch)
treeea3f2e3c59e399ee3659ce7524c63c20a63800ba /lwlib
parentef83dfaf7da4dd955609358a7568399b09ead40f (diff)
downloademacs-0f0912e6442b71ed549b625bfc694581787da97e.tar.gz
Add support for large files, plus some locale improvements.
* dispatch.c, lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib.c, xlwmenu.c, xrdb-cpp.c, xrdb.c: Include <config.h> before any system include files. * lwlib-Xm.c, lwlib.c: Do not include <stdlib.h> or <string.h>, as <config.h> does this.
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/ChangeLog11
-rw-r--r--lwlib/dispatch.c4
-rw-r--r--lwlib/lwlib-Xaw.c4
-rw-r--r--lwlib/lwlib-Xlw.c4
-rw-r--r--lwlib/lwlib-Xm.c6
-rw-r--r--lwlib/lwlib.c8
-rw-r--r--lwlib/xlwmenu.c4
-rw-r--r--lwlib/xrdb-cpp.c4
-rw-r--r--lwlib/xrdb.c4
9 files changed, 43 insertions, 6 deletions
diff --git a/lwlib/ChangeLog b/lwlib/ChangeLog
index 48b46f56ada..abbe7ef1134 100644
--- a/lwlib/ChangeLog
+++ b/lwlib/ChangeLog
@@ -1,3 +1,14 @@
+1999-10-19 Paul Eggert <eggert@twinsun.com>
+
+ Add support for large files, plus some locale improvements.
+
+ * dispatch.c, lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib.c, xlwmenu.c,
+ xrdb-cpp.c, xrdb.c:
+ Include <config.h> before any system include files.
+
+ * lwlib-Xm.c, lwlib.c:
+ Do not include <stdlib.h> or <string.h>, as <config.h> does this.
+
1999-10-07 Gerd Moellmann <gerd@gnu.org>
* lwlib-Xm.c (make_menu_in_widget, update_one_menu_entry): Use
diff --git a/lwlib/dispatch.c b/lwlib/dispatch.c
index 5c554d67fd2..7e70a43105b 100644
--- a/lwlib/dispatch.c
+++ b/lwlib/dispatch.c
@@ -27,6 +27,10 @@ Boston, MA 02111-1307, USA. */
* compile this file unless you have the Xt sources online.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <IntrinsicI.h> /* Don't change this: see comments in Imakefile. */
#include <X11/Xatom.h>
#include "dispatch.h"
diff --git a/lwlib/lwlib-Xaw.c b/lwlib/lwlib-Xaw.c
index e56a11c265a..f2feb32746f 100644
--- a/lwlib/lwlib-Xaw.c
+++ b/lwlib/lwlib-Xaw.c
@@ -18,6 +18,10 @@ along with GNU Emacs; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include "lwlib-Xaw.h"
diff --git a/lwlib/lwlib-Xlw.c b/lwlib/lwlib-Xlw.c
index a927d40bf25..ee6596c27ef 100644
--- a/lwlib/lwlib-Xlw.c
+++ b/lwlib/lwlib-Xlw.c
@@ -18,6 +18,10 @@ along with GNU Emacs; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include "lwlib-Xlw.h"
#include <X11/StringDefs.h>
#include <X11/IntrinsicP.h>
diff --git a/lwlib/lwlib-Xm.c b/lwlib/lwlib-Xm.c
index 285e961f3bb..460839f8a09 100644
--- a/lwlib/lwlib-Xm.c
+++ b/lwlib/lwlib-Xm.c
@@ -18,9 +18,11 @@ along with GNU Emacs; see the file COPYING. If not, write to
the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include <stdlib.h>
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <unistd.h>
-#include <string.h>
#include <stdio.h>
#include <X11/StringDefs.h>
diff --git a/lwlib/lwlib.c b/lwlib/lwlib.c
index f2e564137fe..1f114059778 100644
--- a/lwlib/lwlib.c
+++ b/lwlib/lwlib.c
@@ -22,6 +22,10 @@ Boston, MA 02111-1307, USA. */
#undef __STRICT_BSD__ /* ick */
#endif
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <sys/types.h>
#include <stdio.h>
#include <ctype.h>
@@ -29,10 +33,6 @@ Boston, MA 02111-1307, USA. */
#include "lwlib-utils.h"
#include <X11/StringDefs.h>
-#ifdef __osf__
-#include <string.h>
-#include <stdlib.h>
-#endif
extern long *xmalloc();
#if defined (USE_LUCID)
diff --git a/lwlib/xlwmenu.c b/lwlib/xlwmenu.c
index d32d923ebc0..cadd02584af 100644
--- a/lwlib/xlwmenu.c
+++ b/lwlib/xlwmenu.c
@@ -20,6 +20,10 @@ Boston, MA 02111-1307, USA. */
/* Created by devin@lucid.com */
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <sys/types.h>
diff --git a/lwlib/xrdb-cpp.c b/lwlib/xrdb-cpp.c
index 4ede12e7652..b6a167c0517 100644
--- a/lwlib/xrdb-cpp.c
+++ b/lwlib/xrdb-cpp.c
@@ -29,6 +29,10 @@ Boston, MA 02111-1307, USA. */
#define __STDC_EXTENDED__
#endif
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <stdio.h>
#include <ctype.h>
#include <X11/Xlib.h>
diff --git a/lwlib/xrdb.c b/lwlib/xrdb.c
index e922a60342b..d777c303d61 100644
--- a/lwlib/xrdb.c
+++ b/lwlib/xrdb.c
@@ -4,6 +4,10 @@
avoid version skew problems.
*/
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
#include <X11/Xlib.h>
#include <X11/cursorfont.h>
#include <X11/Xutil.h>