diff options
| author | Eli Zaretskii | 2012-08-20 19:48:10 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2012-08-20 19:48:10 +0300 |
| commit | 72279493cc35c01b488884687fcbe0a0d12beaa5 (patch) | |
| tree | cdd2eca3fc5fe7993ae682e2aed4764ec140e163 /src | |
| parent | 487a247f1d48faac2aa789baddd5ee5d7fa28d4a (diff) | |
| download | emacs-72279493cc35c01b488884687fcbe0a0d12beaa5.tar.gz emacs-72279493cc35c01b488884687fcbe0a0d12beaa5.zip | |
Improve MS-Windows related commentary and log entry for 2012-08-19T21:00:09Z!eggert@cs.ucla.edu.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 2 | ||||
| -rw-r--r-- | src/conf_post.h | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 1e25015da20..bdfb4e3fcb1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -42,6 +42,8 @@ | |||
| 42 | Rely on <config.h> + <unistd.h> to declare 'environ', | 42 | Rely on <config.h> + <unistd.h> to declare 'environ', |
| 43 | as gnulib does this if the system doesn't. | 43 | as gnulib does this if the system doesn't. |
| 44 | * callproc.c, editfns.c, process.c (environ) [!USE_CRT_DLL]: | 44 | * callproc.c, editfns.c, process.c (environ) [!USE_CRT_DLL]: |
| 45 | Remove declaration. MS-Windows declares it on stdlib.h which is | ||
| 46 | included by conf_post.h. | ||
| 45 | * emacs.c (environ) [DOUG_LEA_MALLOC]: | 47 | * emacs.c (environ) [DOUG_LEA_MALLOC]: |
| 46 | * vm-limit.c (environ) [ORDINARY_LINK]: Remove decl. | 48 | * vm-limit.c (environ) [ORDINARY_LINK]: Remove decl. |
| 47 | * vm-limit.c: Include <unistd.h>, for 'environ'. | 49 | * vm-limit.c: Include <unistd.h>, for 'environ'. |
diff --git a/src/conf_post.h b/src/conf_post.h index ead7298e98d..f90ef90fb83 100644 --- a/src/conf_post.h +++ b/src/conf_post.h | |||
| @@ -178,6 +178,9 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */ | |||
| 178 | #endif | 178 | #endif |
| 179 | 179 | ||
| 180 | #include <string.h> | 180 | #include <string.h> |
| 181 | /* If you think about removing the line below, note that the | ||
| 182 | MS-Windows build relies on it for declaration of 'environ' needed | ||
| 183 | by a few source files. */ | ||
| 181 | #include <stdlib.h> | 184 | #include <stdlib.h> |
| 182 | 185 | ||
| 183 | #if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */ | 186 | #if __GNUC__ >= 3 /* On GCC 3.0 we might get a warning. */ |