Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Scholz <epirat07@gmail.com>2018-09-23 21:26:52 +0300
committerJean-Baptiste Kempf <jb@videolan.org>2018-09-24 11:58:47 +0300
commitd83e084c259d8b6c47062fafebf97a4c1bfb7ef2 (patch)
tree33db16b8c5b6fe582dc7c55bcf9070b0f77dee08 /meson.build
parentdc371f98231b7bc0f0554624443f4fd144af574e (diff)
Build: Use POSIX.1–2001 (IEEE Std 1003.1-2001)
Define `_POSIX_C_SOURCE` to `200112L`, to indicate we want to use POSIX.1–2001. Additionally remove incorrect definition of `POSIX_C_SOURCE` (note the lack of underscore at the beginning). The intention was probably to define `_POSIX_C_SOURCE` which would be redundant and previously even conflicting with the other version set previously. For the has_function check, use the correct value of `200112L`.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build5
1 files changed, 2 insertions, 3 deletions
diff --git a/meson.build b/meson.build
index 149fc82..d629ad1 100644
--- a/meson.build
+++ b/meson.build
@@ -56,7 +56,7 @@ endforeach
feature_defines = [
['_GNU_SOURCE', 1], # Enable GNU extensions on systems that have them
- ['_POSIX_C_SOURCE', '200809L'], #IEEE Std 1003.1
+ ['_POSIX_C_SOURCE', '200112L'], # POSIX.1–2001 (IEEE Std 1003.1-2001)
]
if host_machine.system() == 'windows'
@@ -100,8 +100,7 @@ else
warning('Compiler does not support -fvisibility=hidden, all symbols will be public!')
endif
-if cc.has_function('posix_memalign', prefix: '#include <stdlib.h>', args: ['-D_POSIX_C_SOURCE=200112'])
- feature_defines += [['POSIX_C_SOURCE', 200112]]
+if cc.has_function('posix_memalign', prefix: '#include <stdlib.h>', args: ['-D_POSIX_C_SOURCE=200112L'])
cdata.set('HAVE_POSIX_MEMALIGN', 1)
elif cc.has_function('_aligned_malloc', prefix: '#include <malloc.h>')
cdata.set('HAVE_ALIGNED_MALLOC', 1)