diff --git a/include/msvcrt/errno.h b/include/msvcrt/errno.h index d37b7ce754f..2a5194e4d7b 100644 --- a/include/msvcrt/errno.h +++ b/include/msvcrt/errno.h @@ -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