diff options
Diffstat (limited to 'jim-win32compat.h')
-rw-r--r-- | jim-win32compat.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/jim-win32compat.h b/jim-win32compat.h index 080cda0..23a3dfe 100644 --- a/jim-win32compat.h +++ b/jim-win32compat.h @@ -3,6 +3,10 @@ /* Compatibility for Windows (mingw and msvc, not cygwin */ +#ifdef __cplusplus +extern "C" { +#endif + /* Note that at this point we don't yet have access to jimautoconf.h */ #if defined(_WIN32) || defined(WIN32) @@ -70,4 +74,8 @@ struct dirent *readdir(DIR *dir); #endif /* WIN32 */ +#ifdef __cplusplus +} +#endif + #endif |