From 3fbf31290eefc459dcfee379d60d63cc3aef443c Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sun, 11 Jun 2023 14:30:22 -0700 Subject: build: move -D_GNU_SOURCE to CFLAGS drm_fb.c did this locally for asprintf() but since then rand_r and open_memstream have entered the picture as well... this hasn't been a problem on gnu/linux builds but let's just globally go _GNU_SOURCE for now. In mingw land I suspect open_memstream in particular is going to be a PITA and require replacement, judging from search results anyways --- configure.ac | 2 +- src/drm_fb.c | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f523ece..e16ab97 100644 --- a/configure.ac +++ b/configure.ac @@ -22,7 +22,7 @@ PKG_CHECK_MODULES(SDL, sdl2, AM_CONDITIONAL(ENABLE_ROTOTILLER, [test "x$build_rototiller" = xtrue]) LIBS="$DRM_LIBS $SDL_LIBS $LIBS" -CFLAGS="$DRM_CFLAGS $SDL_CFLAGS $CFLAGS" +CFLAGS="$DRM_CFLAGS $SDL_CFLAGS $CFLAGS -D_GNU_SOURCE" AX_PTHREAD LIBS="$PTHREAD_LIBS $LIBS" diff --git a/src/drm_fb.c b/src/drm_fb.c index fe2fefd..7c0aadc 100644 --- a/src/drm_fb.c +++ b/src/drm_fb.c @@ -1,4 +1,3 @@ -#define _GNU_SOURCE /* for asprintf() */ #include #include #include -- cgit v1.2.1