msvcrt: Don't include MSVC 8.0+ environment 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>
This commit is contained in:
Alex Henrie 2018-01-03 01:11:44 -07:00 committed by Alexandre Julliard
parent 160175a881
commit 00fe56a736
2 changed files with 10 additions and 2 deletions

View File

@ -626,6 +626,8 @@ void CDECL MSVCRT___set_app_type(int app_type)
MSVCRT_app_type = app_type;
}
#if _MSVCR_VER>=140
/*********************************************************************
* _get_initial_narrow_environment (UCRTBASE.@)
*/
@ -732,6 +734,8 @@ MSVCRT_wchar_t* CDECL _get_wide_winmain_command_line(void)
return wide_command_line = s;
}
#endif /* _MSVCR_VER>=140 */
/*********************************************************************
* _get_winmajor (MSVCRT.@)
*/

View File

@ -207,8 +207,10 @@ int CDECL _wputenv_s(const MSVCRT_wchar_t *name, const MSVCRT_wchar_t *value)
return ret;
}
#if _MSVCR_VER>=80
/******************************************************************
* _dupenv_s (MSVCRT.@)
* _dupenv_s (MSVCR80.@)
*/
int CDECL _dupenv_s(char **buffer, MSVCRT_size_t *numberOfElements, const char *varname)
{
@ -232,7 +234,7 @@ int CDECL _dupenv_s(char **buffer, MSVCRT_size_t *numberOfElements, const char *
}
/******************************************************************
* _wdupenv_s (MSVCRT.@)
* _wdupenv_s (MSVCR80.@)
*/
int CDECL _wdupenv_s(MSVCRT_wchar_t **buffer, MSVCRT_size_t *numberOfElements,
const MSVCRT_wchar_t *varname)
@ -256,6 +258,8 @@ int CDECL _wdupenv_s(MSVCRT_wchar_t **buffer, MSVCRT_size_t *numberOfElements,
return 0;
}
#endif /* _MSVCR_VER>=80 */
/******************************************************************
* getenv_s (MSVCRT.@)
*/