mirror of
https://github.com/holub/mame
synced 2025-10-05 08:41:31 +03:00
Make MSVC compile once again.
This commit is contained in:
parent
fe40adfb2b
commit
a3b0cf0aea
@ -2832,7 +2832,7 @@ TABLE_OPCODES3 =
|
||||
O(200),O(200),O(200),O(200),O(200),O(200),O(200),O(200)
|
||||
};
|
||||
|
||||
extern int m37710_irq_levels[M37710_LINE_MAX];
|
||||
extern const int m37710_irq_levels[M37710_LINE_MAX];
|
||||
|
||||
/* Assert or clear a line on the CPU */
|
||||
TABLE_FUNCTION(void, set_line, (m37710i_cpu_struct *cpustate, int line, int state))
|
||||
|
@ -538,7 +538,7 @@ VIDEO_START(n64)
|
||||
|
||||
for (i = 0; i < 0x4000; i++)
|
||||
{
|
||||
gamma_dither_table[i] = sqrt(i);
|
||||
gamma_dither_table[i] = sqrt((float)i);
|
||||
gamma_dither_table[i] <<= 1;
|
||||
}
|
||||
|
||||
|
@ -138,6 +138,8 @@ static const translation_info ld_translate[] =
|
||||
{ 0, "-WO", "" },
|
||||
{ 0, "-mconsole", "/subsystem:console" },
|
||||
{ 0, "-mwindows", "/subsystem:windows" },
|
||||
{ 0, "-municode", "" },
|
||||
{ 0, "-static-libgcc", "" },
|
||||
{ 0, "-shared", "/dll" },
|
||||
{ 0 }
|
||||
};
|
||||
|
@ -143,6 +143,9 @@ endif
|
||||
# disable function pointer warnings in C++ which are evil to work around
|
||||
CPPONLYFLAGS += /wd4191 /wd4060 /wd4065 /wd4640
|
||||
|
||||
# explicitly set the entry point for UNICODE builds
|
||||
LDFLAGS += /ENTRY:wmainCRTStartup
|
||||
|
||||
# add some VC++-specific defines
|
||||
DEFS += -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -DXML_STATIC -D__inline__=__inline -Dsnprintf=_snprintf
|
||||
|
||||
|
@ -260,7 +260,7 @@ static void winui_output_error(void *param, const char *format, va_list argptr)
|
||||
// utf8_main
|
||||
//============================================================
|
||||
|
||||
int main(int argc, char **argv)
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
char *ext;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user