Mercurial > emacs
comparison src/config.in @ 2646:f879db79e748
* config.h.in (getenv): Don't test THIS_IS_YMAKEFILE to see if we
should exclude the getenv declaration; instead, test NOT_C_CODE.
Per suggestion from Francesco Potorti`.
* ymakefile (NOT_C_CODE): Define this; it's true, and useful.
* config.h.in (volatile): Don't define this to be the empty string
if some file has #defined HAVE_VOLATILE.
author | Jim Blandy <jimb@redhat.com> |
---|---|
date | Tue, 04 May 1993 02:24:42 +0000 |
parents | e604df2fc029 |
children | 4700c2afc248 |
comparison
equal
deleted
inserted
replaced
2645:b0462d46afff | 2646:f879db79e748 |
---|---|
197 /* SIGTYPE is the macro we actually use. */ | 197 /* SIGTYPE is the macro we actually use. */ |
198 #ifndef SIGTYPE | 198 #ifndef SIGTYPE |
199 #define SIGTYPE RETSIGTYPE | 199 #define SIGTYPE RETSIGTYPE |
200 #endif | 200 #endif |
201 | 201 |
202 /* Non-ANSI C compilers don't have volatile. */ | 202 /* Non-ANSI C compilers usually don't have volatile. */ |
203 #ifndef HAVE_VOLATILE | |
203 #ifndef __STDC__ | 204 #ifndef __STDC__ |
204 #define volatile | 205 #define volatile |
206 #endif | |
205 #endif | 207 #endif |
206 | 208 |
207 /* joe@zircon.uucp says that in order to use XFree386, you have to | 209 /* joe@zircon.uucp says that in order to use XFree386, you have to |
208 link against -lXbsd, which insists on defining the random | 210 link against -lXbsd, which insists on defining the random |
209 function. */ | 211 function. */ |
210 #ifdef HAVE_XFREE386 | 212 #ifdef HAVE_XFREE386 |
211 #define LIBX11_SYSTEM -lXbsd | 213 #define LIBX11_SYSTEM -lXbsd |
212 #define HAVE_RANDOM | 214 #define HAVE_RANDOM |
213 #endif | 215 #endif |
214 | 216 |
215 #ifndef THIS_IS_YMAKEFILE | |
216 /* Some of the files of Emacs which are intended for use with other | 217 /* Some of the files of Emacs which are intended for use with other |
217 programs assume that if you have a config.h file, you must declare | 218 programs assume that if you have a config.h file, you must declare |
218 the type of getenv. */ | 219 the type of getenv. |
220 | |
221 This declaration shouldn't appear when alloca.s or ymakfile | |
222 includes config.h. */ | |
223 #ifndef NOT_C_CODE | |
219 extern char *getenv (); | 224 extern char *getenv (); |
220 #endif | 225 #endif |
221 | 226 |
222 #endif /* EMACS_CONFIG_H */ | 227 #endif /* EMACS_CONFIG_H */ |