diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2021-10-26 12:17:01 +0200 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2021-10-26 13:38:34 +0200 |
commit | aa9097e27cc9e8e98d15a0e0892412fb5a878d08 (patch) | |
tree | 75b4152fd0c47834f7f4ce45d012a114fc317f40 | |
parent | 7205701c7d9e00596287007eb1cfdccfc3f24aa5 (diff) | |
download | libgphoto2-aa9097e27cc9e8e98d15a0e0892412fb5a878d08.tar.gz |
tests: include system headers before gphoto2 headers
In the pedantic compilation tests, include the system headers
before gphoto2 headers - which should be the way to do things.
-rw-r--r-- | tests/test-pedantic-compilation.c | 4 | ||||
-rw-r--r-- | tests/test-pedantic-compilation.cxx | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-pedantic-compilation.c b/tests/test-pedantic-compilation.c index bb88d1a82..f2b254b5d 100644 --- a/tests/test-pedantic-compilation.c +++ b/tests/test-pedantic-compilation.c @@ -1,3 +1,5 @@ +#include <stdio.h> + #include <gphoto2/gphoto2.h> #include <gphoto2/gphoto2-camera.h> #include <gphoto2/gphoto2-list.h> @@ -15,8 +17,6 @@ #include <gphoto2/gphoto2-port-result.h> #include <gphoto2/gphoto2-port-version.h> -#include <stdio.h> - #ifdef __STDC_VERSION__ unsigned long stdc_version = __STDC_VERSION__; #endif diff --git a/tests/test-pedantic-compilation.cxx b/tests/test-pedantic-compilation.cxx index 5dbe12083..b11dcc529 100644 --- a/tests/test-pedantic-compilation.cxx +++ b/tests/test-pedantic-compilation.cxx @@ -1,3 +1,5 @@ +#include <iostream> + #include <gphoto2/gphoto2.h> #include <gphoto2/gphoto2-camera.h> #include <gphoto2/gphoto2-list.h> @@ -15,8 +17,6 @@ #include <gphoto2/gphoto2-port-result.h> #include <gphoto2/gphoto2-port-version.h> -#include <iostream> - unsigned long cxx_version = __cplusplus; int main() |