diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2020-02-18 23:06:08 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2020-02-18 23:06:08 +0100 |
commit | aa7fe17d6b655e9ca34a66356fb7737ef5018c8c (patch) | |
tree | 8cfa417d441c535f724edf17829d26b977a56de4 | |
parent | 22ed5d30ce48d9741c36a299b9908b850463ff5a (diff) | |
download | libgphoto2-aa7fe17d6b655e9ca34a66356fb7737ef5018c8c.tar.gz |
FIXMEUP: pendantic compilation for ANSI C
ANSI C apparently does not define __STDC_VERSION__,
so the C source code needs to be changed to become
ANSI C compatible.
-rw-r--r-- | tests/test-pedantic-compilation.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-pedantic-compilation.c b/tests/test-pedantic-compilation.c index 269ea080d..bb88d1a82 100644 --- a/tests/test-pedantic-compilation.c +++ b/tests/test-pedantic-compilation.c @@ -17,10 +17,16 @@ #include <stdio.h> +#ifdef __STDC_VERSION__ unsigned long stdc_version = __STDC_VERSION__; +#endif int main() { +#ifdef __STDC_VERSION__ printf("stdc_version = %lu\n", stdc_version); +#else + printf("stdc_version = undefined\n"); +#endif return 0; } |