util/consideredharmful: work around some false positives in clang 18
This commit is contained in:
parent
76886a3f44
commit
0fc68b5778
1 changed files with 3 additions and 1 deletions
|
@ -11,6 +11,9 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
// XXX: this header trips some of these deprecation warnings; include it early as a workaround
|
||||
#include <SDL_cpuinfo.h>
|
||||
|
||||
//
|
||||
// safeguards against some dangerous or otherwise undesirable practices
|
||||
//
|
||||
|
@ -73,7 +76,6 @@ int rand(void);
|
|||
attr_deprecated("Use tsrand_seed instead")
|
||||
void srand(uint);
|
||||
|
||||
|
||||
INLINE void *libc_malloc(size_t size) { return malloc(size); }
|
||||
#undef malloc
|
||||
attr_deprecated("Use the memory.h API instead")
|
||||
|
|
Loading…
Reference in a new issue