aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/unexmacosx.c5
-rw-r--r--src/w32.c3
-rw-r--r--src/w32notify.c3
-rw-r--r--src/w32proc.c3
4 files changed, 10 insertions, 4 deletions
diff --git a/src/unexmacosx.c b/src/unexmacosx.c
index 2ba67df8bc9..185a9d1f62b 100644
--- a/src/unexmacosx.c
+++ b/src/unexmacosx.c
@@ -85,11 +85,8 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
85 be changed accordingly. 85 be changed accordingly.
86*/ 86*/
87 87
88/* Make symbols like LLONG_WIDTH visible when the Gnulib <limits.h> 88/* Enable GNU extensions in gnulib replacement headers. */
89 is included before <config.h>. */
90#ifndef _GNU_SOURCE
91#define _GNU_SOURCE 1 89#define _GNU_SOURCE 1
92#endif
93 90
94/* config.h #define:s malloc/realloc/free and then includes stdlib.h. 91/* config.h #define:s malloc/realloc/free and then includes stdlib.h.
95 We want the undefined versions, but if config.h includes stdlib.h 92 We want the undefined versions, but if config.h includes stdlib.h
diff --git a/src/w32.c b/src/w32.c
index 1db34260978..6cb8e748bd5 100644
--- a/src/w32.c
+++ b/src/w32.c
@@ -21,6 +21,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
21 Geoff Voelker (voelker@cs.washington.edu) 7-29-94 21 Geoff Voelker (voelker@cs.washington.edu) 7-29-94
22*/ 22*/
23 23
24/* Enable GNU extensions in gnulib replacement headers. */
25#define _GNU_SOURCE 1
26
24#include <mingw_time.h> 27#include <mingw_time.h>
25#include <stddef.h> /* for offsetof */ 28#include <stddef.h> /* for offsetof */
26#include <stdlib.h> 29#include <stdlib.h>
diff --git a/src/w32notify.c b/src/w32notify.c
index d4a113aaa4d..15e8a86cf17 100644
--- a/src/w32notify.c
+++ b/src/w32notify.c
@@ -81,6 +81,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
81 thread to exit. The main thread waits for some time for the worker 81 thread to exit. The main thread waits for some time for the worker
82 thread to exit, and if it doesn't, terminates it forcibly. */ 82 thread to exit, and if it doesn't, terminates it forcibly. */
83 83
84/* Enable GNU extensions in gnulib replacement headers. */
85#define _GNU_SOURCE 1
86
84#include <stddef.h> 87#include <stddef.h>
85#include <errno.h> 88#include <errno.h>
86 89
diff --git a/src/w32proc.c b/src/w32proc.c
index 90cef3231c8..e23b1b3563c 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -22,6 +22,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
22 Adapted from alarm.c by Tim Fleehart 22 Adapted from alarm.c by Tim Fleehart
23*/ 23*/
24 24
25/* Enable GNU extensions in gnulib replacement headers. */
26#define _GNU_SOURCE 1
27
25#include <mingw_time.h> 28#include <mingw_time.h>
26#include <stdio.h> 29#include <stdio.h>
27#include <stdlib.h> 30#include <stdlib.h>