diff options
author | David Robillard <d@drobilla.net> | 2016-08-01 14:41:54 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-08-01 14:41:54 -0400 |
commit | 25781975fc0783a14f76bc60c15df9d3fcb0f8b0 (patch) | |
tree | 222960fa447a169ddc3b160251087aae6249def8 | |
parent | 2279e1fe9945499046209827e7c6da243a69f00c (diff) | |
download | serd-25781975fc0783a14f76bc60c15df9d3fcb0f8b0.tar.gz serd-25781975fc0783a14f76bc60c15df9d3fcb0f8b0.tar.bz2 serd-25781975fc0783a14f76bc60c15df9d3fcb0f8b0.zip |
Use consistent feature test macros
-rw-r--r-- | src/serd_internal.h | 2 | ||||
-rw-r--r-- | wscript | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/serd_internal.h b/src/serd_internal.h index 23fd75b4..b942072c 100644 --- a/src/serd_internal.h +++ b/src/serd_internal.h @@ -17,7 +17,7 @@ #ifndef SERD_INTERNAL_H #define SERD_INTERNAL_H -#define _POSIX_C_SOURCE 201112L /* for posix_memalign and posix_fadvise */ +#define _POSIX_C_SOURCE 200809L /* for posix_memalign and posix_fadvise */ #include <assert.h> #include <errno.h> @@ -63,19 +63,19 @@ def configure(conf): conf.check(function_name = 'posix_memalign', header_name = 'stdlib.h', define_name = 'HAVE_POSIX_MEMALIGN', - defines = ['_POSIX_C_SOURCE=201112L'], + defines = ['_POSIX_C_SOURCE=200809L'], mandatory = False) conf.check(function_name = 'posix_fadvise', header_name = 'fcntl.h', define_name = 'HAVE_POSIX_FADVISE', - defines = ['_POSIX_C_SOURCE=201112L'], + defines = ['_POSIX_C_SOURCE=200809L'], mandatory = False) conf.check(function_name = 'fileno', header_name = 'stdio.h', define_name = 'HAVE_FILENO', - defines = ['_POSIX_C_SOURCE=201112L'], + defines = ['_POSIX_C_SOURCE=200809L'], mandatory = False) autowaf.define(conf, 'SERD_VERSION', SERD_VERSION) |