summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIvan Maidanski <ivmai@mail.ru>2011-12-28 09:44:06 +0100
committerIvan Maidanski <ivmai@mail.ru>2011-12-30 10:55:48 +0100
commit8d17416db79ced5329f843e89a1010ac3bb827f0 (patch)
tree62634304c14c7bad7c07c767e3156dcac845553d /tests
parent23398db72059f99834ffa4a862b17d16f218c4b0 (diff)
Fix GC_printf import declarator in test_cpp.cc
* tests/test_cpp.cc (GC_API_PRIV): New macro (same definition as in gc_priv.h). * tests/test_cpp.cc (GC_printf): Use GC_API_PRIV instead of GC_API.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_cpp.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc
index 9352b6a..c9944e7 100644
--- a/tests/test_cpp.cc
+++ b/tests/test_cpp.cc
@@ -46,7 +46,11 @@ few minutes to complete.
extern "C" {
# include "private/gcconfig.h"
- GC_API void GC_printf(const char *format, ...);
+
+# ifndef GC_API_PRIV
+# define GC_API_PRIV GC_API
+# endif
+ GC_API_PRIV void GC_printf(const char * format, ...);
/* Use GC private output to reach the same log file. */
/* Don't include gc_priv.h, since that may include Windows system */
/* header files that don't take kindly to this context. */