fixed the type of the entity number
[libfirm] / ir / ident / ident.h
index 9843e35..eab7d9d 100644 (file)
 #include <wchar.h>
 #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_ */