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.
be changed accordingly.
*/
-/* Make symbols like LLONG_WIDTH visible when the Gnulib <limits.h>
- is included before <config.h>. */
-#ifndef _GNU_SOURCE
+/* Enable GNU extensions in gnulib replacement headers. */
#define _GNU_SOURCE 1
-#endif
/* config.h #define:s malloc/realloc/free and then includes stdlib.h.
We want the undefined versions, but if config.h includes stdlib.h
Geoff Voelker (voelker@cs.washington.edu) 7-29-94
*/
+/* Enable GNU extensions in gnulib replacement headers. */
+#define _GNU_SOURCE 1
+
#include <mingw_time.h>
#include <stddef.h> /* for offsetof */
#include <stdlib.h>
thread to exit. The main thread waits for some time for the worker
thread to exit, and if it doesn't, terminates it forcibly. */
+/* Enable GNU extensions in gnulib replacement headers. */
+#define _GNU_SOURCE 1
+
#include <stddef.h>
#include <errno.h>
Adapted from alarm.c by Tim Fleehart
*/
+/* Enable GNU extensions in gnulib replacement headers. */
+#define _GNU_SOURCE 1
+
#include <mingw_time.h>
#include <stdio.h>
#include <stdlib.h>