SDL: cmake: define HAVE_MALLOC_H when malloc.h is found

From bed16f77d12e9442b64b8483283edec19ef15527 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 25 Dec 2024 02:10:53 +0100
Subject: [PATCH] cmake: define HAVE_MALLOC_H when malloc.h is found

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5a6cad028058d..f5bcf2a76b5dd 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -937,7 +937,7 @@ endif()
 set(SDL_DISABLE_ALLOCA 0)
 check_include_file("alloca.h" "HAVE_ALLOCA_H")
 if(MSVC)
-  check_include_file("malloc.h" "HAVE_MALLOC")
+  check_include_file("malloc.h" "HAVE_MALLOC_H")
   check_symbol_exists("_alloca" "malloc.h" _ALLOCA_IN_MALLOC_H)
   if(NOT HAVE_ALLOCA_H AND NOT _ALLOCA_IN_MALLOC_H)
     set(SDL_DISABLE_ALLOCA 1)