]> granicus.if.org Git - gc/commitdiff
Fix GC_printf import declarator in test_cpp.cc
authorIvan Maidanski <ivmai@mail.ru>
Wed, 28 Dec 2011 08:44:06 +0000 (12:44 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 28 Dec 2011 08:44:06 +0000 (12:44 +0400)
* 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

index 6e07cbf9dd7089fe3857f4df9d05a4d473ebad35..fd2982b5f76169c6b91b0ca396d44acd618b3607 100644 (file)
@@ -44,7 +44,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.               */