mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 06:11:51 +00:00
* Compile C code with MSVC Makefile as C instead of C++
* Add compatibility tweak for MSVC in C mode for math functions
This commit is contained in:
parent
21c1acac73
commit
f611d1c357
@ -832,7 +832,7 @@ ifeq ($(DEBUG), 1)
|
|||||||
CFLAGS += -Wp64
|
CFLAGS += -Wp64
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -Od -Zi -D_DEBUG -MTd -TP
|
CFLAGS += -Od -Zi -D_DEBUG -MTd
|
||||||
LDFLAGS += -DEBUG
|
LDFLAGS += -DEBUG
|
||||||
else
|
else
|
||||||
CFLAGS += -O0 -g -DDEBUG
|
CFLAGS += -O0 -g -DDEBUG
|
||||||
@ -847,7 +847,7 @@ else ifneq (,$(findstring msvc,$(platform)))
|
|||||||
LDFLAGS += -SUBSYSTEM:WINDOWS -ENTRY:mainCRTStartup
|
LDFLAGS += -SUBSYSTEM:WINDOWS -ENTRY:mainCRTStartup
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -O2 -DNDEBUG -MT -TP
|
CFLAGS += -O2 -DNDEBUG -MT
|
||||||
else
|
else
|
||||||
CFLAGS += -O3
|
CFLAGS += -O3
|
||||||
endif
|
endif
|
||||||
|
@ -92,7 +92,7 @@ typedef int ssize_t;
|
|||||||
#define va_copy(x, y) ((x) = (y))
|
#define va_copy(x, y) ((x) = (y))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if _MSC_VER <= 1200
|
#if _MSC_VER <= 1310
|
||||||
#ifndef __cplusplus
|
#ifndef __cplusplus
|
||||||
/* VC6 math.h doesn't define some functions when in C mode.
|
/* VC6 math.h doesn't define some functions when in C mode.
|
||||||
* Trying to define a prototype gives "undefined reference".
|
* Trying to define a prototype gives "undefined reference".
|
||||||
|
Loading…
x
Reference in New Issue
Block a user