projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb9f2e3
)
Made xmalloc.h C++ compatible
author
Moritz Kroll
<Moritz.Kroll@gmx.de>
Wed, 15 Oct 2008 00:31:45 +0000
(
00:31
+0000)
committer
Moritz Kroll
<Moritz.Kroll@gmx.de>
Wed, 15 Oct 2008 00:31:45 +0000
(
00:31
+0000)
[r22891]
include/libfirm/adt/xmalloc.h
patch
|
blob
|
history
diff --git
a/include/libfirm/adt/xmalloc.h
b/include/libfirm/adt/xmalloc.h
index
97b292a
..
737d0b4
100644
(file)
--- a/
include/libfirm/adt/xmalloc.h
+++ b/
include/libfirm/adt/xmalloc.h
@@
-28,6
+28,10
@@
#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