stb.h: fix clang compile

This commit is contained in:
Sean Barrett 2019-08-11 05:18:24 -07:00
parent b26a31072d
commit a2d540a689
1 changed files with 2 additions and 4 deletions

6
stb.h
View File

@ -471,6 +471,7 @@ static char *stb_p_strncpy_s(char *a, size_t size, const char *b, size_t count)
#else
#define stb_p_vsnprintf vsnprintf
#endif
#endif // STB_DEFINE
#if defined(_WIN32) && (_MSC_VER >= 1300)
#define stb_p_stricmp _stricmp
@ -482,9 +483,6 @@ static char *stb_p_strncpy_s(char *a, size_t size, const char *b, size_t count)
#define stb_p_strnicmp strnicmp
#endif
#endif // STB_DEFINE
STB_EXTERN void stb_wrapper_malloc(void *newp, size_t sz, char *file, int line);
STB_EXTERN void stb_wrapper_free(void *oldp, char *file, int line);
STB_EXTERN void stb_wrapper_realloc(void *oldp, void *newp, size_t sz, char *file, int line);
@ -7151,7 +7149,7 @@ static void stb__dirtree_scandir(char *path, time_t last_time, stb_dirtree *acti
// @TODO: do this concatenation without using swprintf to avoid this mess:
#if (defined(_MSC_VER) && _MSC_VER < 1400) // || (defined(__clang__))
// confusingly, Windows Kits\10 goes down this path?!?
// confusingly, Windows Kits\10 needs to go down this path?!?
if (has_slash)
swprintf(full_path, L"%s*", stb__from_utf8(path));
else