From: Ivan Maidanski Date: Wed, 28 Dec 2011 08:44:06 +0000 (+0400) Subject: Fix GC_printf import declarator in test_cpp.cc X-Git-Tag: gc7_2~96 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8d17416db79ced5329f843e89a1010ac3bb827f0;p=gc 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. --- 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. */