mirror of
https://github.com/holub/mame
synced 2025-07-04 01:18:59 +03:00
making code compiles and work on mingw 32 bit on versions 4.7.x and 4.8.x (nw)
This commit is contained in:
parent
7908b0201f
commit
f708e7460f
@ -93,7 +93,12 @@
|
|||||||
|
|
||||||
// select which one we will be using
|
// select which one we will be using
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
#define USE_DELEGATE_TYPE DELEGATE_TYPE_INTERNAL
|
/* does not work in versions over 4.7.x of 32bit MINGW */
|
||||||
|
#if ((defined(__MINGW32__) && !defined(__x86_64) && defined(__i386__) && (__GNUC__ == 4) && (__GNUC_MINOR__ >= 7)))
|
||||||
|
#define USE_DELEGATE_TYPE DELEGATE_TYPE_COMPATIBLE
|
||||||
|
#else
|
||||||
|
#define USE_DELEGATE_TYPE DELEGATE_TYPE_INTERNAL
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
#define USE_DELEGATE_TYPE DELEGATE_TYPE_COMPATIBLE
|
#define USE_DELEGATE_TYPE DELEGATE_TYPE_COMPATIBLE
|
||||||
#endif
|
#endif
|
||||||
|
@ -82,7 +82,7 @@ static void drawgdi_exit(void)
|
|||||||
static int drawgdi_window_init(win_window_info *window)
|
static int drawgdi_window_init(win_window_info *window)
|
||||||
{
|
{
|
||||||
gdi_info *gdi;
|
gdi_info *gdi;
|
||||||
int i;
|
UINT8 i;
|
||||||
|
|
||||||
// allocate memory for our structures
|
// allocate memory for our structures
|
||||||
gdi = global_alloc_clear(gdi_info);
|
gdi = global_alloc_clear(gdi_info);
|
||||||
|
@ -53,6 +53,10 @@
|
|||||||
#define end_timing(v) do { } while (0)
|
#define end_timing(v) do { } while (0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if __GNUC__ && defined(__i386__) && !defined(__x86_64)
|
||||||
|
#undef YieldProcessor
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef YieldProcessor
|
#ifndef YieldProcessor
|
||||||
#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
INLINE void YieldProcessor(void)
|
INLINE void YieldProcessor(void)
|
||||||
|
Loading…
Reference in New Issue
Block a user