From 8d17416db79ced5329f843e89a1010ac3bb827f0 Mon Sep 17 00:00:00 2001 From: Ivan Maidanski Date: Wed, 28 Dec 2011 12:44:06 +0400 Subject: [PATCH] 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. --- tests/test_cpp.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_cpp.cc b/tests/test_cpp.cc index 9352b6a9..c9944e74 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. */ -- 2.40.0