Changed mixSDL_IntVal and TFBSound_IntVal to intptr_t because they must
be able to contain pointer to mixSDL_Buffer git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1080 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -159,7 +159,7 @@ typedef enum
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
typedef intptr_t mixSDL_Object;
|
typedef intptr_t mixSDL_Object;
|
||||||
typedef int mixSDL_IntVal;
|
typedef intptr_t mixSDL_IntVal;
|
||||||
|
|
||||||
typedef struct _mixSDL_Buffer
|
typedef struct _mixSDL_Buffer
|
||||||
{
|
{
|
||||||
@@ -272,6 +272,8 @@ void mixSDL_BufferData (mixSDL_Object bufobj, uint32 format, void* data,
|
|||||||
|
|
||||||
MIX_COMPILE_TIME_ASSERT (mixSDL_Object,
|
MIX_COMPILE_TIME_ASSERT (mixSDL_Object,
|
||||||
sizeof(mixSDL_Object) >= sizeof(void*));
|
sizeof(mixSDL_Object) >= sizeof(void*));
|
||||||
|
MIX_COMPILE_TIME_ASSERT (mixSDL_IntVal,
|
||||||
|
sizeof(mixSDL_IntVal) >= sizeof(mixSDL_Object));
|
||||||
|
|
||||||
#undef MIX_COMPILE_TIME_ASSERT
|
#undef MIX_COMPILE_TIME_ASSERT
|
||||||
|
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
typedef intptr_t TFBSound_Object;
|
typedef intptr_t TFBSound_Object;
|
||||||
typedef int TFBSound_IntVal;
|
typedef intptr_t TFBSound_IntVal;
|
||||||
typedef const int TFBSound_SourceProp;
|
typedef const int TFBSound_SourceProp;
|
||||||
typedef const int TFBSound_BufferProp;
|
typedef const int TFBSound_BufferProp;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user