summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <gp@n-dimensional.de>2006-10-03 20:03:28 +0000
committerHans Ulrich Niedermann <gp@n-dimensional.de>2006-10-03 20:03:28 +0000
commitdcb5cc7c4b4b6b3c030b1e58147cd3906e8b53ce (patch)
tree3d5c2917d07666c8aa5932b7c7e7cec96bb0eae9 /tests
parentf254047b9a159af13bb6ce106f5e7b84891ef858 (diff)
downloadlibgphoto2-dcb5cc7c4b4b6b3c030b1e58147cd3906e8b53ce.tar.gz
cheat about variadic macros in C++ pedantic compilation
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@9259 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'tests')
-rw-r--r--tests/test-pedantic-compilation.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test-pedantic-compilation.cxx b/tests/test-pedantic-compilation.cxx
index 92898219a..0b501f9b8 100644
--- a/tests/test-pedantic-compilation.cxx
+++ b/tests/test-pedantic-compilation.cxx
@@ -1,3 +1,12 @@
+/* Defining GP_DEBUG before including gphoto2-port-log.h prevents the
+ * latter from defining GP_DEBUG as a variadic macro. Variadic macros
+ * have not been defined in ANSI C, so we are cheating here.
+ *
+ * This should be the only problem we cause, and thus work around it
+ * here.
+ */
+#define GP_DEBUG
+
#include <gphoto2/gphoto2.h>
#include <gphoto2/gphoto2-camera.h>
#include <gphoto2/gphoto2-list.h>