Skip to content

Commit 45d65f6

Browse files
committed
Older Visual Studio does not provide a intptr_t typedef
1 parent 121df30 commit 45d65f6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

include/SDL3/SDL_stdinc.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@ typedef signed __int32 int32_t;
6262
typedef unsigned __int32 uint32_t;
6363
typedef signed __int64 int64_t;
6464
typedef unsigned __int64 uint64_t;
65+
#ifndef _INTPTR_T_DEFINED
66+
#ifdef _WIN64
67+
typedef __int64 intptr_t;
68+
#else
69+
typedef int intptr_t;
70+
#endif
71+
#endif
6572
#ifndef _UINTPTR_T_DEFINED
6673
#ifdef _WIN64
6774
typedef unsigned __int64 uintptr_t;

0 commit comments

Comments
 (0)