Commit e21cbfe7 authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 5e2ed6bf
......@@ -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 */
......@@ -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 */
......@@ -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 */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment