- 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:
Aleksey Bragin 2008-07-03 12:07:12 +00:00
parent d6d4af57f2
commit 4b6c66431e
2 changed files with 2 additions and 1 deletions

View file

@ -489,7 +489,7 @@ char *setlocale(int category, const char *locale)
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);
switch (category) {

View file

@ -48,6 +48,7 @@
#undef sprintf
#undef wsprintf
#undef snprintf
#undef vsnprintf
#undef vprintf
#undef vwprintf