浏览代码

SDL_config_android.h: update SIZEOF_VOIDP define to respect __LP64__

Ozkan Sezer 5 年之前
父节点
当前提交
92edee2324
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/SDL_config_android.h

+ 4 - 0
include/SDL_config_android.h

@@ -133,7 +133,11 @@
 #define HAVE_SYSCONF    1
 #define HAVE_SYSCONF    1
 #define HAVE_CLOCK_GETTIME  1
 #define HAVE_CLOCK_GETTIME  1
 
 
+#ifdef __LP64__
+#define SIZEOF_VOIDP 8
+#else
 #define SIZEOF_VOIDP 4
 #define SIZEOF_VOIDP 4
+#endif
 
 
 /* Enable various audio drivers */
 /* Enable various audio drivers */
 #define SDL_AUDIO_DRIVER_ANDROID    1
 #define SDL_AUDIO_DRIVER_ANDROID    1