From c3ba00bf3f3b125ed9885e6f9639ae4fd02506ed Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 6 May 2003 11:59:29 +0000 Subject: [PATCH] added __cplusplus extern "C". --- lib/q.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/q.h b/lib/q.h index b530447..d51914b 100644 --- a/lib/q.h +++ b/lib/q.h @@ -12,6 +12,10 @@ #include +#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__ -- 1.7.10.4