Commit 45247de0 authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

Fix errno linkage when compiling in C++.

parent c36faaaa
...@@ -112,8 +112,16 @@ ...@@ -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
......
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