diff --git a/src/Win32_Interop/win32fixes.h b/src/Win32_Interop/win32fixes.h index b4f4d4aeba015ad3925bfbbd8f3d206fe82dc1d5..c2a336222205da828f0df3c93434807274b27ee0 100644 --- a/src/Win32_Interop/win32fixes.h +++ b/src/Win32_Interop/win32fixes.h @@ -55,12 +55,21 @@ #endif #endif +#ifdef __cplusplus +extern "C" +{ +#endif + /* strtod does not handle Inf and Nan, we need to do the check before calling strtod */ #undef strtod #define strtod(nptr, eptr) wstrtod((nptr), (eptr)) double wstrtod(const char *nptr, char **eptr); +#ifdef __cplusplus +} +#endif + // access check for executable uses X_OK. For Windows use READ access. #ifndef X_OK #define X_OK 4