diff options
-rw-r--r-- | test/egl_epoxy_api.c | 4 | ||||
-rw-r--r-- | test/egl_has_extension_nocontext.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/egl_epoxy_api.c b/test/egl_epoxy_api.c index a840525..252b535 100644 --- a/test/egl_epoxy_api.c +++ b/test/egl_epoxy_api.c @@ -27,7 +27,11 @@ * Tests the Epoxy API using EGL. */ +#ifdef __sun +#define __EXTENSIONS__ +#else #define _GNU_SOURCE +#endif #include <stdio.h> #include <string.h> #include <stdlib.h> diff --git a/test/egl_has_extension_nocontext.c b/test/egl_has_extension_nocontext.c index a95860a..4fa5f60 100644 --- a/test/egl_has_extension_nocontext.c +++ b/test/egl_has_extension_nocontext.c @@ -28,7 +28,11 @@ * no context bound would fail out in dispatch. */ +#ifdef __sun +#define __EXTENSIONS__ +#else #define _GNU_SOURCE +#endif #include <stdio.h> #include <string.h> #include <stdlib.h> |