fix warnings for mingw

This commit is contained in:
lixianjing 2021-03-30 13:51:36 +08:00
parent 3c07e44896
commit f4cabf6262
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ NANOVG_BACKEND_PROJS=[];
NATIVE_WINDOW='sdl'
TOOLS_NAME = ''
# TOOLS_NAME = 'mingw'
TOOLS_NAME = 'mingw'
COMMON_CCFLAGS=' -DTK_ROOT=\"\\\"'+TK_ROOT+'\\\"\" '
#COMMON_CCFLAGS=COMMON_CCFLAGS+' -DENABLE_PERFORMANCE_PROFILE=1 '

View File

@ -248,7 +248,7 @@ typedef enum _ret_t {
#define MAX_PATH 255
#endif /*MAX_PATH*/
#if defined(WIN32)
#if defined(WIN32) && !defined(MINGW)
#define TK_PATH_SEP '\\'
#ifndef snprintf
#define snprintf _snprintf