Define _GNU_SOURCE for strdup()

The strdup() function is available on uClibc if _XOPEN_SOURCE_EXTENDED
is defined; since we're using _GNU_SOURCE elsewhere to enable extended
libc features, and uClibc will set _XOPEN_SOURCE_EXTENDED if _GNU_SOURCE
is set, let's use that.

Closes #181
macos/v1.5.9
Emmanuele Bassi 7 years ago
parent 7b8a540dce
commit 7f38b12881
  1. 1
      test/egl_epoxy_api.c
  2. 1
      test/egl_has_extension_nocontext.c

@ -27,6 +27,7 @@
* Tests the Epoxy API using EGL. * Tests the Epoxy API using EGL.
*/ */
#define _GNU_SOURCE
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

@ -28,6 +28,7 @@
* no context bound would fail out in dispatch. * no context bound would fail out in dispatch.
*/ */
#define _GNU_SOURCE
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>

Loading…
Cancel
Save