Module: wine Branch: master Commit: 5041d89b9779dd3b4f3ef9b9f9e054db714f7e39 URL: https://source.winehq.org/git/wine.git/?a=commit;h=5041d89b9779dd3b4f3ef9b9f...
Author: Alex Henrie alexhenrie24@gmail.com Date: Wed Jan 3 21:33:03 2018 -0700
msvcrt: Don't include MSVC 7.1+ purecall functions in SOs for older DLLs.
Signed-off-by: Alex Henrie alexhenrie24@gmail.com Signed-off-by: Piotr Caban piotr@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/msvcrt/exit.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dlls/msvcrt/exit.c b/dlls/msvcrt/exit.c index 44b29c1..d0e93d7 100644 --- a/dlls/msvcrt/exit.c +++ b/dlls/msvcrt/exit.c @@ -462,6 +462,7 @@ void CDECL _register_thread_local_exe_atexit_callback(_tls_callback_type callbac tls_atexit_callback = callback; }
+#if _MSVCR_VER>=71 /********************************************************************* * _set_purecall_handler (MSVCR71.@) */ @@ -473,15 +474,18 @@ MSVCRT_purecall_handler CDECL _set_purecall_handler(MSVCRT_purecall_handler func purecall_handler = function; return ret; } +#endif
+#if _MSVCR_VER>=80 /********************************************************************* - * _get_purecall_handler + * _get_purecall_handler (MSVCR80.@) */ MSVCRT_purecall_handler CDECL _get_purecall_handler(void) { TRACE("\n"); return purecall_handler; } +#endif
/********************************************************************* * _purecall (MSVCRT.@)