mirror of
https://github.com/reactos/reactos.git
synced 2024-09-12 22:02:18 +00:00
- Fix double linking of snprintf (_snprintf should be used in CRT).
- Add a #undef guard for snprintf in consistency with how it previously was implemented in CRT. svn path=/trunk/; revision=34282
This commit is contained in:
parent
d6d4af57f2
commit
4b6c66431e
|
@ -489,7 +489,7 @@ char *setlocale(int category, const char *locale)
|
||||||
|
|
||||||
MSVCRT_current_lc_all_lcid = lcid;
|
MSVCRT_current_lc_all_lcid = lcid;
|
||||||
|
|
||||||
snprintf(MSVCRT_current_lc_all,MAX_LOCALE_LENGTH,"%s_%s.%s",
|
_snprintf(MSVCRT_current_lc_all,MAX_LOCALE_LENGTH,"%s_%s.%s",
|
||||||
lc.found_language,lc.found_country,lc.found_codepage);
|
lc.found_language,lc.found_country,lc.found_codepage);
|
||||||
|
|
||||||
switch (category) {
|
switch (category) {
|
||||||
|
|
|
@ -48,6 +48,7 @@
|
||||||
|
|
||||||
#undef sprintf
|
#undef sprintf
|
||||||
#undef wsprintf
|
#undef wsprintf
|
||||||
|
#undef snprintf
|
||||||
#undef vsnprintf
|
#undef vsnprintf
|
||||||
#undef vprintf
|
#undef vprintf
|
||||||
#undef vwprintf
|
#undef vwprintf
|
||||||
|
|
Loading…
Reference in a new issue