aboutsummaryrefslogtreecommitdiffstats
path: root/xmlmemory.h
diff options
context:
space:
mode:
Diffstat (limited to 'xmlmemory.h')
-rw-r--r--xmlmemory.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmlmemory.h b/xmlmemory.h
index d28b526c..5c1b4774 100644
--- a/xmlmemory.h
+++ b/xmlmemory.h
@@ -40,6 +40,9 @@
#define MEM_LIST /* keep a list of all the allocated memory blocks */
+#ifdef __cplusplus
+extern "C" {
+#endif
int xmlInitMemory (void);
void * xmlMalloc (int size);
void * xmlRealloc (void *ptr,
@@ -59,6 +62,9 @@ int xmlInitMemory (void);
extern void * xmlMallocLoc(int size, const char *file, int line);
extern void * xmlReallocLoc(void *ptr,int size, const char *file, int line);
extern char * xmlMemStrdupLoc(const char *str, const char *file, int line);
+#ifdef __cplusplus
+}
+#endif
#endif /* DEBUG_MEMORY_LOCATION */
#endif /* ! NO_DEBUG_MEMORY */