From 45d65f6e1f51422c414e85f133849648918a8c09 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 11 Oct 2025 00:30:38 +0200 Subject: [PATCH] Older Visual Studio does not provide a intptr_t typedef --- include/SDL3/SDL_stdinc.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/SDL3/SDL_stdinc.h b/include/SDL3/SDL_stdinc.h index 00b024a86b..9a7dfb077b 100644 --- a/include/SDL3/SDL_stdinc.h +++ b/include/SDL3/SDL_stdinc.h @@ -62,6 +62,13 @@ typedef signed __int32 int32_t; typedef unsigned __int32 uint32_t; typedef signed __int64 int64_t; typedef unsigned __int64 uint64_t; +#ifndef _INTPTR_T_DEFINED +#ifdef _WIN64 +typedef __int64 intptr_t; +#else +typedef int intptr_t; +#endif +#endif #ifndef _UINTPTR_T_DEFINED #ifdef _WIN64 typedef unsigned __int64 uintptr_t;