build: Set _POSIX_C_SOURCE=200809L instead of comment about -std=gnu99 in 8fea1ea42e
We are converging towards setting it globally.
This commit is contained in:
parent
57c5aa95f7
commit
b7249c8fe7
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user