From: Daniel Elstner Date: Wed, 26 Aug 2015 11:55:53 +0000 (+0200) Subject: Build: Define feature test macro _DEFAULT_SOURCE X-Git-Tag: libsigrok-0.4.0~387 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=68799618f6ed6e4becc862e9e1061c61e31dd1fe Build: Define feature test macro _DEFAULT_SOURCE This basically makes glibc expose the same set of features as if gcc was invoked without any restricting -std=c* option. Unlike _GNU_SOURCE however, it does not enable GNU-specific extensions. So, with this macro defined the behavior of Linux with glibc should match that of other platforms. --- diff --git a/Makefile.am b/Makefile.am index d4f87518..1e79a286 100644 --- a/Makefile.am +++ b/Makefile.am @@ -29,7 +29,7 @@ if BINDINGS_CXX local_includes += -Ibindings/cxx/include -I$(srcdir)/bindings/cxx/include -Ibindings/cxx endif # Ensure that local include directories are always searched first. -AM_CPPFLAGS = $(local_includes) -D_POSIX_C_SOURCE=200112L -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' +AM_CPPFLAGS = $(local_includes) -D_DEFAULT_SOURCE -DFIRMWARE_DIR='"$(FIRMWARE_DIR)"' # The tests CFLAGS are a superset of the libsigrok CFLAGS, and the # python bindings CFLAGS are a superset of the C++ bindings CFLAGS.