changeset 25032:ae314c884db0

(NARROWPROTO): New.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 21 Jul 1999 21:43:52 +0000
parents c4a2a30142bd
children 584c34c7cf53
files src/s/freebsd.h src/s/gnu-linux.h src/s/gnu.h src/s/irix5-0.h src/s/netbsd.h src/s/sco4.h src/s/sco5.h src/s/template.h
diffstat 8 files changed, 33 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/s/freebsd.h	Wed Jul 21 21:43:52 1999 +0000
+++ b/src/s/freebsd.h	Wed Jul 21 21:43:52 1999 +0000
@@ -92,7 +92,9 @@
 
 #define HAVE_WAIT_HEADER
 #define HAVE_GETLOADAVG
-/*#define HAVE_GETPAGESIZE  /* configure now puts this in config.h */
+#if 0
+#define HAVE_GETPAGESIZE  /* configure now puts this in config.h */
+#endif
 #define HAVE_TERMIOS
 #define NO_TERMIO
 #define DECLARE_GETPWUID_WITH_UID_T
@@ -132,3 +134,11 @@
    remaining in /tmp or other directories with +t bit.
    To avoid this problem, you could #undef it to use no file lock. */
 /* #undef CLASH_DETECTION */
+
+/* If the system's imake configuration file defines `NeedWidePrototypes'
+   as `NO', we must define NARROWPROTO manually.  Such a define is
+   generated in the Makefile generated by `xmkmf'.  If we don't 
+   define NARROWPROTO, we will see the wrong function prototypes
+   for X functions taking float or double parameters.  */
+
+#define NARROWPROTO 1
--- a/src/s/gnu-linux.h	Wed Jul 21 21:43:52 1999 +0000
+++ b/src/s/gnu-linux.h	Wed Jul 21 21:43:52 1999 +0000
@@ -303,6 +303,8 @@
 #define BSD_PGRPS
 #define setpgrp(pid,pgid) setpgid(pid,pgid)
 
+#define NARROWPROTO 1
+
 /* Use mmap directly for allocating larger buffers.  */
 #ifdef DOUG_LEA_MALLOC
 #undef REL_ALLOC
--- a/src/s/gnu.h	Wed Jul 21 21:43:52 1999 +0000
+++ b/src/s/gnu.h	Wed Jul 21 21:43:52 1999 +0000
@@ -76,3 +76,5 @@
 #ifndef NOT_C_CODE
 #include <fcntl.h>
 #endif
+
+#define NARROWPROTO 1
--- a/src/s/irix5-0.h	Wed Jul 21 21:43:52 1999 +0000
+++ b/src/s/irix5-0.h	Wed Jul 21 21:43:52 1999 +0000
@@ -127,3 +127,6 @@
 /* Prevent the variable ospeed from being defined by -lcurses
    because it defines it with too few bytes.  */
 #define ospeed ospeed_
+
+#define NARROWPROTO 1
+
--- a/src/s/netbsd.h	Wed Jul 21 21:43:52 1999 +0000
+++ b/src/s/netbsd.h	Wed Jul 21 21:43:52 1999 +0000
@@ -79,3 +79,5 @@
    this problem, and will also work on earlier NetBSD releases */
 
 #define LINKER $(CC) -nostartfiles
+
+#define NARROWPROTO 1
--- a/src/s/sco4.h	Wed Jul 21 21:43:52 1999 +0000
+++ b/src/s/sco4.h	Wed Jul 21 21:43:52 1999 +0000
@@ -148,3 +148,5 @@
    It doesn't have the kind of sockets that emacsclient.c
    and emacsserver.c would use.  */
 #define NO_SOCKETS_IN_FILE_SYSTEM
+
+#define NARROWPROTO 1
--- a/src/s/sco5.h	Wed Jul 21 21:43:52 1999 +0000
+++ b/src/s/sco5.h	Wed Jul 21 21:43:52 1999 +0000
@@ -169,3 +169,5 @@
 #define START_FILES pre-crt0.o /usr/ccs/lib/crt1.o /usr/ccs/lib/values-Xt.o
 #undef LIB_STANDARD
 #define LIB_STANDARD -lc /usr/ccs/lib/crtn.o
+
+#define NARROWPROTO 1
--- a/src/s/template.h	Wed Jul 21 21:43:52 1999 +0000
+++ b/src/s/template.h	Wed Jul 21 21:43:52 1999 +0000
@@ -1,7 +1,7 @@
 /* Template for system description header files.
    This file describes the parameters that system description files
    should define or not.
-   Copyright (C) 1985, 1986, 1992 Free Software Foundation, Inc.
+   Copyright (C) 1985, 1986, 1992, 1999 Free Software Foundation, Inc.
 
 This file is part of GNU Emacs.
 
@@ -163,6 +163,14 @@
 
 /* #define static */
 
+/* If the system's imake configuration file defines `NeedWidePrototypes'
+   as `NO', we must define NARROWPROTO manually.  Such a define is
+   generated in the Makefile generated by `xmkmf'.  If we don't 
+   define NARROWPROTO, we will see the wrong function prototypes
+   for X functions taking float or double parameters.  */
+
+/*  #define NARROWPROTO 1 */
+
 /* ============================================================ */
 
 /* After adding support for a new system, modify the large case