Fix errno linkage when compiling in C++.

This commit is contained in:
Dimitrie O. Paun 2003-03-28 19:31:12 +00:00 committed by Alexandre Julliard
parent c36faaaa24
commit 45247de05b
1 changed files with 8 additions and 0 deletions

View File

@ -112,8 +112,16 @@
#endif /* USE_MSVCRT_PREFIX */ #endif /* USE_MSVCRT_PREFIX */
#ifdef __cplusplus
extern "C" {
#endif
extern int* MSVCRT(_errno)(void); extern int* MSVCRT(_errno)(void);
#ifdef __cplusplus
}
#endif
#ifndef USE_MSVCRT_PREFIX #ifndef USE_MSVCRT_PREFIX
# define errno (*_errno()) # define errno (*_errno())
#else #else