mirror of
https://github.com/reactos/wine.git
synced 2024-12-12 22:05:55 +00:00
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:
parent
160175a881
commit
00fe56a736
@ -626,6 +626,8 @@ void CDECL MSVCRT___set_app_type(int app_type)
|
|||||||
MSVCRT_app_type = app_type;
|
MSVCRT_app_type = app_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if _MSVCR_VER>=140
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* _get_initial_narrow_environment (UCRTBASE.@)
|
* _get_initial_narrow_environment (UCRTBASE.@)
|
||||||
*/
|
*/
|
||||||
@ -732,6 +734,8 @@ MSVCRT_wchar_t* CDECL _get_wide_winmain_command_line(void)
|
|||||||
return wide_command_line = s;
|
return wide_command_line = s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* _MSVCR_VER>=140 */
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
* _get_winmajor (MSVCRT.@)
|
* _get_winmajor (MSVCRT.@)
|
||||||
*/
|
*/
|
||||||
|
@ -207,8 +207,10 @@ int CDECL _wputenv_s(const MSVCRT_wchar_t *name, const MSVCRT_wchar_t *value)
|
|||||||
return ret;
|
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)
|
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,
|
int CDECL _wdupenv_s(MSVCRT_wchar_t **buffer, MSVCRT_size_t *numberOfElements,
|
||||||
const MSVCRT_wchar_t *varname)
|
const MSVCRT_wchar_t *varname)
|
||||||
@ -256,6 +258,8 @@ int CDECL _wdupenv_s(MSVCRT_wchar_t **buffer, MSVCRT_size_t *numberOfElements,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* _MSVCR_VER>=80 */
|
||||||
|
|
||||||
/******************************************************************
|
/******************************************************************
|
||||||
* getenv_s (MSVCRT.@)
|
* getenv_s (MSVCRT.@)
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user