浏览代码

stdinc: strcasecmp is declared in strings.h

Anonymous Maarten 1 年之前
父节点
当前提交
3374e57102
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      include/SDL3/SDL_stdinc.h

+ 2 - 1
include/SDL3/SDL_stdinc.h

@@ -2963,8 +2963,9 @@ size_t wcslcat(wchar_t *dst, const wchar_t *src, size_t size);
 
 /* Starting LLVM 16, the analyser errors out if these functions do not have
    their prototype defined (clang-diagnostic-implicit-function-declaration) */
-#include <stdlib.h>
 #include <stdio.h>
+#include <stdlib.h>
+#include <strings.h>
 
 #define SDL_malloc malloc
 #define SDL_calloc calloc