Fix errno linkage when compiling in C++.
This commit is contained in:
parent
c36faaaa24
commit
45247de05b
|
@ -112,8 +112,16 @@
|
|||
|
||||
#endif /* USE_MSVCRT_PREFIX */
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
extern int* MSVCRT(_errno)(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef USE_MSVCRT_PREFIX
|
||||
# define errno (*_errno())
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue