Skip to content
Myr

stb.h: fix clang compile

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parent b26a310 · Browse files · 1 file+2 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−4 removed

  • other:+2 added−4 removed

1 file+2 added−4 removed

modified:stb.h+2 added-4 removed
469 unmodified lines
470#define stb_p_vsnprintf _vsnprintf471#else472#define stb_p_vsnprintf vsnprintf473#endif474#endif // STB_DEFINE475476#if defined(_WIN32) && (_MSC_VER >= 1300)477#define stb_p_stricmp _stricmp478#define stb_p_strnicmp _strnicmp
3 unmodified lines
482#define stb_p_stricmp stricmp483#define stb_p_strnicmp strnicmp484#endif485485#endif // STB_DEFINE486487486STB_EXTERN void stb_wrapper_malloc(void *newp, size_t sz, char *file, int line);487STB_EXTERN void stb_wrapper_free(void *oldp, char *file, int line);488STB_EXTERN void stb_wrapper_realloc(void *oldp, void *newp, size_t sz, char *file, int line);489STB_EXTERN void stb_wrapper_calloc(size_t num, size_t sz, char *file, int line);
6658 unmodified lines
7148 has_slash = (path[0] && path[strlen(path)-1] == '/'); 71497150 // @TODO: do this concatenation without using swprintf to avoid this mess:7151#if (defined(_MSC_VER) && _MSC_VER < 1400) // || (defined(__clang__))7154 // confusingly, Windows Kits\10 goes down this path?!?7152 // confusingly, Windows Kits\10 needs to go down this path?!?7153 if (has_slash)7154 swprintf(full_path, L"%s*", stb__from_utf8(path));7155 else7156 swprintf(full_path, L"%s/*", stb__from_utf8(path));
7295 unmodified lines