..and changed intptr back to intptr_t, this time hopefully avoiding all conflicts

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1077 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
gewlitys
2003-07-21 04:10:58 +00:00
parent a91b438794
commit 2c43816a1c
3 changed files with 8 additions and 14 deletions
+1 -1
View File
@@ -158,7 +158,7 @@ typedef enum
* Interface Types
*/
typedef intptr mixSDL_Object;
typedef intptr_t mixSDL_Object;
typedef int mixSDL_IntVal;
typedef struct _mixSDL_Buffer
+1 -1
View File
@@ -39,7 +39,7 @@
* Interface Types
*/
typedef intptr TFBSound_Object;
typedef intptr_t TFBSound_Object;
typedef int TFBSound_IntVal;
typedef const int TFBSound_SourceProp;
typedef const int TFBSound_BufferProp;
+6 -12
View File
@@ -22,6 +22,12 @@
#ifndef _TYPES_H
#define _TYPES_H
#ifdef _MSC_VER
# include <stddef.h>
#else
# include <stdint.h>
#endif
#if defined(__MACOS__)
# define UQM_INT16 short
@@ -101,18 +107,6 @@ typedef struct
#undef UQM_INT16
#undef UQM_INT32
#ifdef WIN32
typedef sint32 intptr;
#elif defined (WIN64) || defined (_WIN64)
typedef sint64 intptr;
#else
# if __WORDSIZE == 64
typedef sint64 intptr;
# else
typedef sint32 intptr;
#endif
#endif
/* Make sure the types really have the right sizes
* Adapted from SDL
* This will generate "negative subscript or subscript is too large"