aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32.c
diff options
context:
space:
mode:
authorPaul Eggert2016-09-17 11:05:07 -0700
committerPaul Eggert2016-09-17 11:06:05 -0700
commit7cd3d85013896dc4160f70228fc198c65a42b2e2 (patch)
treebe682d95806570eaeb1aaa7acbcff7b25e82c4c1 /src/w32.c
parentd7f0daf7ecaa7b138f7c66796e23fa5982b0a8bb (diff)
downloademacs-7cd3d85013896dc4160f70228fc198c65a42b2e2.tar.gz
emacs-7cd3d85013896dc4160f70228fc198c65a42b2e2.zip
Define _GNU_SOURCE in files delaying config.h
Problem reported by Richard Copley in: http://lists.gnu.org/archive/html/emacs-devel/2016-09/msg00440.html * src/w32.c, src/w32notify.c, src/w32proc.c (_GNU_SOURCE): Define early.
Diffstat (limited to 'src/w32.c')
-rw-r--r--src/w32.c3
1 files changed, 3 insertions, 0 deletions
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>