mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-29 04:21:03 +08:00
Fix clang-tidy error on LLVM 16.
Starting LLVM 16, clang-diagnostic-implicit-function-declaration is
treated as an error.
(cherry picked from commit ea093378a2)
This commit is contained in:
committed by
Ozkan Sezer
parent
cd64e0b6e3
commit
0081174689
@@ -724,6 +724,11 @@ 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
|
||||||
|
|
||||||
|
/* 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 <string.h>
|
||||||
|
|
||||||
#define SDL_malloc malloc
|
#define SDL_malloc malloc
|
||||||
#define SDL_calloc calloc
|
#define SDL_calloc calloc
|
||||||
#define SDL_realloc realloc
|
#define SDL_realloc realloc
|
||||||
|
|||||||
Reference in New Issue
Block a user