* src/toolbox/logging.h [__cplusplus]: Added extern "C".
authorChristian Thalinger <twisti@complang.tuwien.ac.at>
Tue, 19 Aug 2008 08:36:10 +0000 (10:36 +0200)
committerChristian Thalinger <twisti@complang.tuwien.ac.at>
Tue, 19 Aug 2008 08:36:10 +0000 (10:36 +0200)
src/toolbox/logging.h

index a0604b702bcae0822f3dd522f5bbb538244c7b1b..9f58b8df425c2b5b2e405b08572578ea2315e495 100644 (file)
 #include "vm/utf8.h"
 
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /*500 is to small for eclipse traces, (builtin_trace_args, perhaps the
 buffer should be created there dynamically, if the text is longer,
 instead of setting the size for all invocations that big*/
@@ -65,6 +69,10 @@ void log_message_method(const char *msg, methodinfo *m);
 #define log_text(s) log_println("%s", (s))
 #define dolog log_println
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _LOGGING_H */