mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-29 13:03:42 +01:00
add win64 compat definitions also
This commit is contained in:
parent
2eb1876bb8
commit
995c70eaf7
2 changed files with 8 additions and 5 deletions
|
@ -68,11 +68,16 @@
|
||||||
#define END(x) .size x, . - x
|
#define END(x) .size x, . - x
|
||||||
|
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
#define _ENTRY(x) _START_ENTRY; \
|
#ifndef _MSC_VER
|
||||||
|
#define END(x) .end
|
||||||
|
#define _START_ENTRY_WIN .text; _START_ENTRY
|
||||||
|
#else
|
||||||
|
#define END(x) end
|
||||||
|
#define _START_ENTRY_WIN .model small; .code; _START_ENTRY
|
||||||
|
#endif
|
||||||
|
#define _ENTRY(x) _START_ENTRY_WIN; \
|
||||||
.globl CNAME(x); .section .drectve; .ascii " -export:" #x; \
|
.globl CNAME(x); .section .drectve; .ascii " -export:" #x; \
|
||||||
.section .text; .def CNAME(x); .scl 2; .type 32; .endef; CNAME(x):
|
.section .text; .def CNAME(x); .scl 2; .type 32; .endef; CNAME(x):
|
||||||
#define END(x) .end
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PROF
|
#ifdef PROF
|
||||||
|
|
|
@ -81,11 +81,9 @@
|
||||||
#elif defined(_WIN32)
|
#elif defined(_WIN32)
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
#define END(x) .end
|
#define END(x) .end
|
||||||
#define HEX(Y) 0x#Y
|
|
||||||
#define _START_ENTRY_WIN .text; _START_ENTRY
|
#define _START_ENTRY_WIN .text; _START_ENTRY
|
||||||
#else
|
#else
|
||||||
#define END(x) end
|
#define END(x) end
|
||||||
#define HEX(Y) Y#h
|
|
||||||
#define _START_ENTRY_WIN .model small; .code; _START_ENTRY
|
#define _START_ENTRY_WIN .model small; .code; _START_ENTRY
|
||||||
#endif
|
#endif
|
||||||
#define CNAME(csym) _##csym
|
#define CNAME(csym) _##csym
|
||||||
|
|
Loading…
Reference in a new issue