diff options
author | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2020-02-18 21:23:35 +0100 |
---|---|---|
committer | Hans Ulrich Niedermann <hun@n-dimensional.de> | 2020-02-18 22:52:33 +0100 |
commit | d64e5c43e0cf8b45fdc082d7bd3734010fc2d392 (patch) | |
tree | 29dc4adcd46bcb889545cf2e1f84a23d63b8e26d | |
parent | 223b45c965e261e2523eaa66d9102d3bb2fbcc18 (diff) | |
download | libgphoto2-d64e5c43e0cf8b45fdc082d7bd3734010fc2d392.tar.gz |
In C++ pendantic compilation source, use actual C++ code
In C++ pendantic compilation source, use actual C++ code instead
of relying on C code working when compiled as C++ code.
-rw-r--r-- | tests/test-pedantic-compilation.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-pedantic-compilation.cxx b/tests/test-pedantic-compilation.cxx index 70bac2f2b..5dbe12083 100644 --- a/tests/test-pedantic-compilation.cxx +++ b/tests/test-pedantic-compilation.cxx @@ -15,12 +15,12 @@ #include <gphoto2/gphoto2-port-result.h> #include <gphoto2/gphoto2-port-version.h> -#include <stdio.h> +#include <iostream> unsigned long cxx_version = __cplusplus; int main() { - printf("cxx_version = %lu\n", cxx_version); + std::cout << "cxx_version = " << cxx_version << std::endl; return 0; } |