From 14ac479e62eb25a210c26224b852e2f0a5b24c4c Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Fri, 30 Dec 2005 15:29:21 +0000 Subject: [PATCH] extern "C" added renamed struct _ident to struct ident for better debugging [r7171] --- ir/ident/ident.c | 2 +- ir/ident/ident.h | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ir/ident/ident.c b/ir/ident/ident.c index 49abd69d8..f73581039 100644 --- a/ir/ident/ident.c +++ b/ir/ident/ident.c @@ -35,7 +35,7 @@ #include "set.h" /* for debugging only, not the real implementation */ -struct ident { +struct _ident { char reserved[sizeof(unsigned) + sizeof(size_t)]; char data[1]; }; diff --git a/ir/ident/ident.h b/ir/ident/ident.h index 9843e3532..eab7d9d7a 100644 --- a/ir/ident/ident.h +++ b/ir/ident/ident.h @@ -25,6 +25,10 @@ #include #endif +#ifdef __cplusplus +extern "C" { +#endif + /* Identifiers */ /** @@ -35,7 +39,7 @@ */ #ifndef _IDENT_TYPEDEF_ #define _IDENT_TYPEDEF_ -typedef const struct ident ident; +typedef const struct _ident ident; #endif /** @@ -281,4 +285,8 @@ int id_contains_wchar (ident *id, wchar_t c); #endif /* FIRM_ENABLE_WCHAR */ +#ifdef __cplusplus +} +#endif + # endif /* _IDENT_H_ */ -- 2.20.1