Alexandre Julliard : include: Add extern "C" to the exported Wine headers.

Alexandre Julliard julliard at winehq.org
Thu Nov 6 08:25:56 CST 2008


Module: wine
Branch: master
Commit: e21cbfe7e81c1d8d0bffdefaed8f73f7d0309d50
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e21cbfe7e81c1d8d0bffdefaed8f73f7d0309d50

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Nov  6 10:43:31 2008 +0100

include: Add extern "C" to the exported Wine headers.

---

 include/wine/exception.h |    8 ++++++++
 include/wine/library.h   |    8 ++++++++
 include/wine/unicode.h   |    8 ++++++++
 3 files changed, 24 insertions(+), 0 deletions(-)

diff --git a/include/wine/exception.h b/include/wine/exception.h
index de2f95c..ccace07 100644
--- a/include/wine/exception.h
+++ b/include/wine/exception.h
@@ -25,6 +25,10 @@
 #include <windef.h>
 #include <excpt.h>
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* The following definitions allow using exceptions in Wine and Winelib code
  *
  * They should be used like this:
@@ -329,4 +333,8 @@ static inline DWORD __wine_finally_handler( EXCEPTION_RECORD *record,
 
 #endif /* USE_COMPILER_EXCEPTIONS */
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif  /* __WINE_WINE_EXCEPTION_H */
diff --git a/include/wine/library.h b/include/wine/library.h
index 0c60378..5843fe2 100644
--- a/include/wine/library.h
+++ b/include/wine/library.h
@@ -31,6 +31,10 @@
 #error This file should not be used in Wine tests
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 /* configuration */
 
 extern const char *wine_get_build_dir(void);
@@ -212,4 +216,8 @@ __DEFINE_SET_SEG(gs)
 #undef __DEFINE_GET_SEG
 #undef __DEFINE_SET_SEG
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif  /* __WINE_WINE_LIBRARY_H */
diff --git a/include/wine/unicode.h b/include/wine/unicode.h
index 49f9062..780665a 100644
--- a/include/wine/unicode.h
+++ b/include/wine/unicode.h
@@ -31,6 +31,10 @@
 #error This file should not be used in Wine tests
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef WINE_UNICODE_API
 # if defined(_MSC_VER) || defined(__MINGW32__)
 #  define WINE_UNICODE_API DECLSPEC_IMPORT
@@ -331,4 +335,8 @@ WINE_UNICODE_INLINE int atoiW( const WCHAR *str )
 
 #undef WINE_UNICODE_INLINE
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif  /* __WINE_WINE_UNICODE_H */




More information about the wine-cvs mailing list