From: Moritz Kroll Date: Wed, 15 Oct 2008 00:31:45 +0000 (+0000) Subject: Made xmalloc.h C++ compatible X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=382f803c29c0e6711dba7f3d08f73bc0077b38c0;p=libfirm Made xmalloc.h C++ compatible [r22891] --- diff --git a/include/libfirm/adt/xmalloc.h b/include/libfirm/adt/xmalloc.h index 97b292a1e..737d0b4e4 100644 --- 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 #include @@ -85,4 +89,8 @@ char *xstrdup(const char *str); #include #endif +#ifdef __cplusplus +} +#endif + #endif