Преглед на файлове

stb.h: fix clang compile

Sean Barrett преди 6 години
родител
ревизия
a2d540a689
променени са 1 файла, в които са добавени 2 реда и са изтрити 4 реда
  1. 2 4
      stb.h

+ 2 - 4
stb.h

@@ -471,6 +471,7 @@ static char *stb_p_strncpy_s(char *a, size_t size, const char *b, size_t count)
 #else
 #else
 #define stb_p_vsnprintf  vsnprintf
 #define stb_p_vsnprintf  vsnprintf
 #endif
 #endif
+#endif // STB_DEFINE
 
 
 #if defined(_WIN32) && (_MSC_VER >= 1300)
 #if defined(_WIN32) && (_MSC_VER >= 1300)
 #define stb_p_stricmp    _stricmp
 #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
 #define stb_p_strnicmp   strnicmp
 #endif
 #endif
 
 
-#endif // STB_DEFINE
-
-
 STB_EXTERN void stb_wrapper_malloc(void *newp, size_t sz, char *file, int line);
 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_free(void *oldp, char *file, int line);
 STB_EXTERN void stb_wrapper_realloc(void *oldp, void *newp, size_t sz, 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:
    // @TODO: do this concatenation without using swprintf to avoid this mess:
 #if (defined(_MSC_VER) && _MSC_VER < 1400) // || (defined(__clang__))
 #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)
    if (has_slash)
       swprintf(full_path, L"%s*", stb__from_utf8(path));
       swprintf(full_path, L"%s*", stb__from_utf8(path));
    else
    else