added __cplusplus extern "C".
[swftools.git] / 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__