From b7249c8fe7363fc2fb41b7b9910113c940a24709 Mon Sep 17 00:00:00 2001 From: Mads Kiilerich Date: Thu, 12 Sep 2024 21:20:48 +0200 Subject: [PATCH] build: Set _POSIX_C_SOURCE=200809L instead of comment about -std=gnu99 in 8fea1ea42ec We are converging towards setting it globally. --- libs/hidapi/wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/hidapi/wscript b/libs/hidapi/wscript index 459327ebed..a85dd53058 100644 --- a/libs/hidapi/wscript +++ b/libs/hidapi/wscript @@ -35,6 +35,7 @@ def build(bld): autowaf.ensure_visible_symbols (obj, False) obj.export_includes = ['hidapi'] obj.includes = ['hidapi'] + obj.defines = ['_POSIX_C_SOURCE=200809L'] obj.name = 'hidapi' obj.target = 'hidapi' obj.vnum = HIDAPI_VERSION @@ -51,7 +52,6 @@ def build(bld): obj.source = 'mac/hid.c' obj.framework = [ 'IOKit', 'CoreFoundation' ] else: - # with '-strict' this needs "-std=gnu99" to compile w/o warnings obj.source = 'linux/hid.c' if re.search ("linux", sys.platform) != None: obj.uselib = 'UDEV'