# HG changeset patch # User Jim Blandy # Date 727023734 0 # Node ID f18ae1a08d85bf5b008f41664364d82ccb9c37fb # Parent 86f58433c8aacbf1f07dfe9e2891c0eef5ef5a81 * config.h.in: protect against multiple #inclusions. * config.h.in: Add a declaration for getenv. diff -r 86f58433c8aa -r f18ae1a08d85 src/config.in --- a/src/config.in Thu Jan 14 14:52:32 1993 +0000 +++ b/src/config.in Thu Jan 14 15:02:14 1993 +0000 @@ -19,6 +19,12 @@ and this notice must be preserved on all copies. */ +/* No code in Emacs #includes config.h twice, but some of the code + intended to work with other packages as well (like gmalloc.c) + think they can include it as many times as they like. */ +#ifndef EMACS_CONFIG_H +#define EMACS_CONFIG_H + /* Define HAVE_X_WINDOWS if you want to use the X window system. */ /* #define HAVE_X_WINDOWS */ @@ -165,3 +171,12 @@ #ifndef SIGTYPE #define SIGTYPE void #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. */ +extern char *getenv (); +#endif + +#endif /* EMACS_CONFIG_H */