Made xmalloc.h C++ compatible
authorMoritz Kroll <Moritz.Kroll@gmx.de>
Wed, 15 Oct 2008 00:31:45 +0000 (00:31 +0000)
committerMoritz Kroll <Moritz.Kroll@gmx.de>
Wed, 15 Oct 2008 00:31:45 +0000 (00:31 +0000)
[r22891]

include/libfirm/adt/xmalloc.h

index 97b292a..737d0b4 100644 (file)
 #ifndef FIRM_ADT_XMALLOC_H
 #define FIRM_ADT_XMALLOC_H
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <stddef.h>
 #include <stdlib.h>
 
@@ -85,4 +89,8 @@ char *xstrdup(const char *str);
 #include <alloca.h>
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif