ソースを参照

Older Visual Studio does not provide a intptr_t typedef

Anonymous Maarten 1 日 前
コミット
45d65f6e1f
1 ファイル変更7 行追加0 行削除
  1. 7 0
      include/SDL3/SDL_stdinc.h

+ 7 - 0
include/SDL3/SDL_stdinc.h

@@ -62,6 +62,13 @@ typedef signed __int32 int32_t;
 typedef unsigned __int32 uint32_t;
 typedef unsigned __int32 uint32_t;
 typedef signed __int64 int64_t;
 typedef signed __int64 int64_t;
 typedef unsigned __int64 uint64_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
 #ifndef _UINTPTR_T_DEFINED
 #ifdef _WIN64
 #ifdef _WIN64
 typedef unsigned __int64 uintptr_t;
 typedef unsigned __int64 uintptr_t;