Created
November 29, 2015 21:26
-
-
Save shirok/11fb4dbf5613f8fe061b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/gauche/win-compat.h b/src/gauche/win-compat.h | |
index c0a1ec6..50cd556 100644 | |
--- a/src/gauche/win-compat.h | |
+++ b/src/gauche/win-compat.h | |
@@ -146,11 +146,11 @@ int sigaction(int signum, const struct sigaction *act, struct sigaction *oact); | |
/* Implementation of Scm_MBS2WCS/WCS2MBS is in win-compat.c */ | |
#if defined(LIBGAUCHE_BODY) | |
-extern __declspec(dllexport) WCHAR *Scm_MBS2WCS(const char *s); | |
-extern __declspec(dllexport) const char *Scm_WCS2MBS(const WCHAR *s); | |
+extern "C" __declspec(dllexport) WCHAR *Scm_MBS2WCS(const char *s); | |
+extern "C" __declspec(dllexport) const char *Scm_WCS2MBS(const WCHAR *s); | |
#else /*!LIBGAUCHE_BODY*/ | |
-extern __declspec(dllimport) WCHAR *Scm_MBS2WCS(const char *s); | |
-extern __declspec(dllimport) const char *Scm_WCS2MBS(const WCHAR *s); | |
+extern "C" __declspec(dllimport) WCHAR *Scm_MBS2WCS(const char *s); | |
+extern "C" __declspec(dllimport) const char *Scm_WCS2MBS(const WCHAR *s); | |
#endif /*!LIBGAUCHE_BODY*/ | |
#if defined(UNICODE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment