mirror of
https://github.com/Ryujinx/SDL.git
synced 2025-06-03 19:58:27 +00:00
fix mingw build failures in CI with clang-tidy.
(cherry-picked from commit a8a72de6fbcf9afe8a6e8760f31a79a0ed6fed1a)
This commit is contained in:
parent
c68976360d
commit
9dea06f5b5
|
@ -716,10 +716,19 @@ size_t strlcpy(char* dst, const char* src, size_t size);
|
||||||
size_t strlcat(char* dst, const char* src, size_t size);
|
size_t strlcat(char* dst, const char* src, size_t size);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_WCSLCPY
|
||||||
|
size_t wcslcpy(wchar_t *dst, const wchar_t *src, size_t size);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef HAVE_WCSLCAT
|
||||||
|
size_t wcslcat(wchar_t *dst, const wchar_t *src, size_t size);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Starting LLVM 16, the analyser errors out if these functions do not have
|
/* Starting LLVM 16, the analyser errors out if these functions do not have
|
||||||
their prototype defined (clang-diagnostic-implicit-function-declaration) */
|
their prototype defined (clang-diagnostic-implicit-function-declaration) */
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#define SDL_malloc malloc
|
#define SDL_malloc malloc
|
||||||
#define SDL_calloc calloc
|
#define SDL_calloc calloc
|
||||||
|
|
Loading…
Reference in a new issue