X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fq.h;h=42c938df0b863f4100a76d861c0a2354d6eba25f;hb=0097022d06fd03d385aea0226f27efbf2bb451eb;hp=b53044736d5bb5719dd9ea7771ff1252d8e03e9d;hpb=7729deb8d1fe947c8d0af89cb5368c7e0f8e7990;p=swftools.git diff --git a/lib/q.h b/lib/q.h index b530447..42c938d 100644 --- a/lib/q.h +++ b/lib/q.h @@ -11,6 +11,11 @@ #define __q_h__ #include +#include "../config.h" + +#ifdef __cplusplus +extern "C" { +#endif /* dynamically growing mem section */ typedef struct _mem_t { @@ -88,7 +93,7 @@ void dictionary_del(dictionary_t*dict, const char* name); void dictionary_clear(dictionary_t*dict); void dictionary_destroy(dictionary_t*dict); -char* strndup(const char*str, int size); +char* strdup_n(const char*str, int size); void* qmalloc_internal(int len); void* qrealloc_internal(void*old, int len); @@ -98,4 +103,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__