diff options
author | Brodie Thiesfield <brofield@gmail.com> | 2009-06-30 13:29:17 +0400 |
---|---|---|
committer | Brodie Thiesfield <brofield@gmail.com> | 2009-06-30 13:29:17 +0400 |
commit | ab63107823ab3c320d0830d84f1e875b9e6d2f65 (patch) | |
tree | 06ddcddeb15606086c3df867cc08bba4007f203d /SimpleIni.h | |
parent | 871c57f1fbe8f6684ff242bf544bfeb133c375eb (diff) |
build with VC2008 no warnings
Diffstat (limited to 'SimpleIni.h')
-rw-r--r-- | SimpleIni.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/SimpleIni.h b/SimpleIni.h index b5a526a..69ad663 100644 --- a/SimpleIni.h +++ b/SimpleIni.h @@ -1978,7 +1978,11 @@ CSimpleIniTempl<SI_CHAR,SI_STRLESS,SI_CONVERTER>::SetLongValue( // convert to an ASCII string char szInput[64]; +#if __STDC_WANT_SECURE_LIB__ && !_WIN32_WCE + sprintf_s(szInput, a_bUseHex ? "0x%lx" : "%ld", a_nValue); +#else // !__STDC_WANT_SECURE_LIB__ sprintf(szInput, a_bUseHex ? "0x%lx" : "%ld", a_nValue); +#endif // __STDC_WANT_SECURE_LIB__ // convert to output text SI_CHAR szOutput[64]; |