summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/Makefile.am6
-rw-r--r--tests/ddb/ddb-common.h2
-rw-r--r--tests/ddb/ddb-txt.y1
-rw-r--r--tests/ddb/test-ddb.c1
-rw-r--r--tests/test-pedantic-compilation.cxx9
5 files changed, 6 insertions, 13 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 70df7b9e3..8ea93c4d7 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -54,6 +54,9 @@ PEDANTIC_CXXFLAGS =
endif
test_pedantic_c_SOURCES = test-pedantic-compilation.c
+test_pedantic_c_CPPFLAGS = \
+ $(AM_CPPFLAGS) $(CPPFLAGS) \
+ -U _GPHOTO2_INTERNAL_CODE
test_pedantic_c_CFLAGS = $(PEDANTIC_CFLAGS) $(AM_CFLAGS) $(CFLAGS)
test_pedantic_c_LDADD = \
$(top_builddir)/libgphoto2/libgphoto2.la \
@@ -62,6 +65,9 @@ test_pedantic_c_LDADD = \
$(INTLLIBS)
test_pedantic_cxx_SOURCES = test-pedantic-compilation.cxx
+test_pedantic_cxx_CPPFLAGS = \
+ $(AM_CPPFLAGS) $(CPPFLAGS) \
+ -U _GPHOTO2_INTERNAL_CODE
test_pedantic_cxx_CXXFLAGS = $(PEDANTIC_CXXFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
test_pedantic_cxx_LDADD = \
$(top_builddir)/libgphoto2/libgphoto2.la \
diff --git a/tests/ddb/ddb-common.h b/tests/ddb/ddb-common.h
index 383a526ef..43905f8b4 100644
--- a/tests/ddb/ddb-common.h
+++ b/tests/ddb/ddb-common.h
@@ -23,8 +23,6 @@
#ifndef __DDB_TXT_H__
#define __DDB_TXT_H__
-#define _GPHOTO2_INTERNAL_CODE
-
#include <stdio.h>
#include <gphoto2/gphoto2-abilities-list.h>
diff --git a/tests/ddb/ddb-txt.y b/tests/ddb/ddb-txt.y
index 1596827e9..85629f60e 100644
--- a/tests/ddb/ddb-txt.y
+++ b/tests/ddb/ddb-txt.y
@@ -25,7 +25,6 @@
#include <stdlib.h>
#include <string.h>
-#define _GPHOTO2_INTERNAL_CODE
#include <gphoto2/gphoto2-abilities-list.h>
#include "ddb-common.h"
diff --git a/tests/ddb/test-ddb.c b/tests/ddb/test-ddb.c
index 17e529fbf..b07caa629 100644
--- a/tests/ddb/test-ddb.c
+++ b/tests/ddb/test-ddb.c
@@ -24,7 +24,6 @@
#include <stdlib.h>
#include <string.h>
-#define _GPHOTO2_INTERNAL_CODE
#include <gphoto2/gphoto2-abilities-list.h>
#include "ddb-common.h"
diff --git a/tests/test-pedantic-compilation.cxx b/tests/test-pedantic-compilation.cxx
index 0b501f9b8..92898219a 100644
--- a/tests/test-pedantic-compilation.cxx
+++ b/tests/test-pedantic-compilation.cxx
@@ -1,12 +1,3 @@
-/* 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>