added __cplusplus extern "C".
authorkramm <kramm>
Tue, 6 May 2003 11:59:29 +0000 (11:59 +0000)
committerkramm <kramm>
Tue, 6 May 2003 11:59:29 +0000 (11:59 +0000)
lib/q.h

diff --git a/lib/q.h b/lib/q.h
index b530447..d51914b 100644 (file)
--- a/lib/q.h
+++ b/lib/q.h
 
 #include <stdio.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* dynamically growing mem section */
 typedef struct _mem_t {
     char*buffer;
@@ -98,4 +102,8 @@ void qfree_internal(void*old);
 #define qrealloc(old, len) qmalloc_internal(old, len)
 #define qfree(old) qmalloc_internal(old)
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif //__q_h__