mirror of https://github.com/encounter/SDL.git
Fixed build warning because of redefining string functions
This commit is contained in:
parent
5f79cd1600
commit
70c781c803
|
@ -32,11 +32,29 @@
|
|||
#include "SDL_mutex.h"
|
||||
#include "SDL_thread.h"
|
||||
|
||||
#ifdef realloc
|
||||
#undef realloc
|
||||
#endif
|
||||
#define realloc SDL_realloc
|
||||
#ifdef snprintf
|
||||
#undef snprintf
|
||||
#endif
|
||||
#define snprintf SDL_snprintf
|
||||
#ifdef strdup
|
||||
#undef strdup
|
||||
#endif
|
||||
#define strdup SDL_strdup
|
||||
#ifdef strncpy
|
||||
#undef strncpy
|
||||
#endif
|
||||
#define strncpy SDL_strlcpy
|
||||
#ifdef tolower
|
||||
#undef tolower
|
||||
#endif
|
||||
#define tolower SDL_tolower
|
||||
#ifdef wcsncpy
|
||||
#undef wcsncpy
|
||||
#endif
|
||||
#define wcsncpy SDL_wcslcpy
|
||||
|
||||
#ifndef HAVE_WCSDUP
|
||||
|
|
Loading…
Reference in New Issue