diff --git a/src/audio/windx5/directx.h b/src/audio/windx5/directx.h index d14d6c637..e482301c6 100644 --- a/src/audio/windx5/directx.h +++ b/src/audio/windx5/directx.h @@ -2,6 +2,10 @@ #ifndef _directx_h #define _directx_h +#ifdef __GNUC__ +#define NONAMELESSUNION +#endif + /* Include all of the DirectX 5.0 headers and adds any necessary tweaks */ #define WIN32_LEAN_AND_MEAN @@ -74,9 +78,6 @@ #define DIRECTSOUND_VERSION 0x0500 #define DIRECTINPUT_VERSION 0x0500 -#ifdef __GNUC__ -#define NONAMELESSUNION -#endif #include #include #include diff --git a/src/thread/win32/SDL_systhread.c b/src/thread/win32/SDL_systhread.c index a0fb2f58b..6f50617d6 100644 --- a/src/thread/win32/SDL_systhread.c +++ b/src/thread/win32/SDL_systhread.c @@ -37,7 +37,7 @@ #endif #if __GNUC__ -typedef unsigned long (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, +typedef uintptr_t (__cdecl *pfnSDL_CurrentBeginThread) (void *, unsigned, unsigned (__stdcall *func)(void *), void *arg, unsigned, unsigned *threadID); typedef void (__cdecl *pfnSDL_CurrentEndThread)(unsigned code); diff --git a/src/video/windx5/SDL_dx5yuv.c b/src/video/windx5/SDL_dx5yuv.c index ba0f66197..da1d29d02 100644 --- a/src/video/windx5/SDL_dx5yuv.c +++ b/src/video/windx5/SDL_dx5yuv.c @@ -22,7 +22,7 @@ #include "SDL_config.h" /* This is the DirectDraw implementation of YUV video overlays */ - +#include "directx.h" #include "SDL_video.h" #include "SDL_dx5yuv_c.h" #include "../SDL_yuvfuncs.h" diff --git a/src/video/windx5/directx.h b/src/video/windx5/directx.h index 3c89d9c30..b3b29f7e3 100644 --- a/src/video/windx5/directx.h +++ b/src/video/windx5/directx.h @@ -2,6 +2,10 @@ #ifndef _directx_h #define _directx_h +#ifdef __GNUC__ +#define NONAMELESSUNION +#endif + /* Include all of the DirectX 5.0 headers and adds any necessary tweaks */ #define WIN32_LEAN_AND_MEAN @@ -74,9 +78,6 @@ #define DIRECTSOUND_VERSION 0x0500 #define DIRECTINPUT_VERSION 0x0700 -#ifdef __GNUC__ -#define NONAMELESSUNION -#endif #include #include #include