# HG changeset patch # User Jim Blandy # Date 736482282 0 # Node ID f879db79e748b26cfbcd26f962e0db06781e38d9 # Parent b0462d46afff8da70f4f9cfb3e4ec2c7ca6a9d65 * 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. diff -r b0462d46afff -r f879db79e748 src/config.in --- a/src/config.in Tue May 04 02:23:12 1993 +0000 +++ b/src/config.in Tue May 04 02:24:42 1993 +0000 @@ -199,10 +199,12 @@ #define SIGTYPE RETSIGTYPE #endif -/* Non-ANSI C compilers don't have volatile. */ +/* Non-ANSI C compilers usually don't have volatile. */ +#ifndef HAVE_VOLATILE #ifndef __STDC__ #define volatile #endif +#endif /* joe@zircon.uucp says that in order to use XFree386, you have to link against -lXbsd, which insists on defining the random @@ -212,10 +214,13 @@ #define HAVE_RANDOM #endif -#ifndef THIS_IS_YMAKEFILE /* Some of the files of Emacs which are intended for use with other programs assume that if you have a config.h file, you must declare - the type of getenv. */ + the type of getenv. + + This declaration shouldn't appear when alloca.s or ymakfile + includes config.h. */ +#ifndef NOT_C_CODE extern char *getenv (); #endif