[PATCH] msvcrt: Don't include MSVC 11.0+ function _wcreate_locale in SOs for older DLLs

Alex Henrie alexhenrie24 at gmail.com
Wed Jan 10 00:21:44 CST 2018


Signed-off-by: Alex Henrie <alexhenrie24 at gmail.com>
---
 dlls/msvcrt/locale.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/dlls/msvcrt/locale.c b/dlls/msvcrt/locale.c
index 6d5ceb581b..c37989d770 100644
--- a/dlls/msvcrt/locale.c
+++ b/dlls/msvcrt/locale.c
@@ -1641,8 +1641,9 @@ MSVCRT__locale_t CDECL MSVCRT__create_locale(int category, const char *locale)
     return loc;
 }
 
+#if _MSVCR_VER >= 110
 /*********************************************************************
- *      _wcreate_locale (MSVCRT.@)
+ *      _wcreate_locale (MSVCR110.@)
  */
 MSVCRT__locale_t CDECL MSVCRT__wcreate_locale(int category, const MSVCRT_wchar_t *locale)
 {
@@ -1665,6 +1666,7 @@ MSVCRT__locale_t CDECL MSVCRT__wcreate_locale(int category, const MSVCRT_wchar_t
     MSVCRT_free(str);
     return loc;
 }
+#endif
 
 /*********************************************************************
  *             setlocale (MSVCRT.@)
-- 
2.15.1




More information about the wine-devel mailing list