mirror of
https://github.com/holub/mame
synced 2025-04-26 18:23:08 +03:00
MSVC compilation fixes.
This commit is contained in:
parent
02e27f9ff9
commit
a21d4c2470
@ -45,7 +45,13 @@
|
|||||||
#define __EIVC__
|
#define __EIVC__
|
||||||
|
|
||||||
#if (_MSC_VER >= 1400)
|
#if (_MSC_VER >= 1400)
|
||||||
|
|
||||||
|
// need to ignore 'nonstandard extension used' warning in setjmp.h
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable: 4987)
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
|
#pragma warning(pop)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
extern "C" long __cdecl _InterlockedIncrement(long volatile *);
|
extern "C" long __cdecl _InterlockedIncrement(long volatile *);
|
||||||
extern "C" long __cdecl _InterlockedDecrement(long volatile *);
|
extern "C" long __cdecl _InterlockedDecrement(long volatile *);
|
||||||
|
@ -101,7 +101,7 @@ static const translation_info gcc_translate[] =
|
|||||||
{ 0, "-fomit-frame-pointer", "" },
|
{ 0, "-fomit-frame-pointer", "" },
|
||||||
{ 0, "-Werror", "/WX" },
|
{ 0, "-Werror", "/WX" },
|
||||||
//{ VS7, "-Wall", "/Wall /W3 /wd4003 /wd4018 /wd4146 /wd4242 /wd4244 /wd4619 /wd4702 /wd4706 /wd4710 /wd4711 /wd4738 /wd4826" },
|
//{ VS7, "-Wall", "/Wall /W3 /wd4003 /wd4018 /wd4146 /wd4242 /wd4244 /wd4619 /wd4702 /wd4706 /wd4710 /wd4711 /wd4738 /wd4826" },
|
||||||
{ VS7, "-Wall", "/Wall /W4 /wd4003 /wd4018 /wd4146 /wd4242 /wd4244 /wd4619 /wd4702 /wd4706 /wd4710 /wd4711 /wd4738 /wd4826 /wd4820 /wd4514 /wd4668 /wd4127 /wd4625 /wd4626 /wd4512 /wd4100 /wd4310 /wd4571 /wd4061 /wd4131 /wd4255 /wd4510 /wd4610 /wd4505 /wd4324 /wd4611 /wd4201 /wd4189 /wd4296" },
|
{ VS7, "-Wall", "/Wall /W4 /wd4003 /wd4018 /wd4146 /wd4242 /wd4244 /wd4619 /wd4702 /wd4706 /wd4710 /wd4711 /wd4738 /wd4826 /wd4820 /wd4514 /wd4668 /wd4127 /wd4625 /wd4626 /wd4512 /wd4100 /wd4310 /wd4571 /wd4061 /wd4131 /wd4255 /wd4510 /wd4610 /wd4505 /wd4324 /wd4611 /wd4201 /wd4189 /wd4296 /wd4986 /wd4347" },
|
||||||
{ 0, "-Wall", "/W0" },
|
{ 0, "-Wall", "/W0" },
|
||||||
{ VS7, "-Wno-unused", "/wd4100 /wd4101 /wd4102 /wd4505" },
|
{ VS7, "-Wno-unused", "/wd4100 /wd4101 /wd4102 /wd4505" },
|
||||||
{ 0, "-Wno-sign-compare", "/wd4365 /wd4389 /wd4245" },
|
{ 0, "-Wno-sign-compare", "/wd4365 /wd4389 /wd4245" },
|
||||||
|
Loading…
Reference in New Issue
Block a user