mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 15:13:54 +00:00
Use pragma to ignore deprecated integer-to-ascii CRT conversion functions
This commit is contained in:
committed by
Anonymous Maarten
parent
08e338f45c
commit
dcf063178c
@@ -1158,6 +1158,10 @@ char *SDL_uitoa(unsigned int value, char *string, int radix)
|
||||
return SDL_ultoa((unsigned long)value, string, radix);
|
||||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4996) // Ignore warning about deprecated itoa, _ltoa, _ultoa, _i64toa, _ui64toa
|
||||
#endif
|
||||
char *SDL_itoa(int value, char *string, int radix)
|
||||
{
|
||||
#ifdef HAVE_ITOA
|
||||
@@ -1250,6 +1254,9 @@ char *SDL_ulltoa(unsigned long long value, char *string, int radix)
|
||||
return string;
|
||||
#endif // HAVE__UI64TOA
|
||||
}
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
int SDL_atoi(const char *string)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user