include: Add extern "C" to the exported Wine headers.
This commit is contained in:
parent
5e2ed6bfe9
commit
e21cbfe7e8
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue