mirror of
https://git.planet-casio.com/Lephenixnoir/OpenLibm.git
synced 2024-12-29 13:03:42 +01:00
Small change to exported symbol names on windows
This commit is contained in:
parent
adb103acec
commit
4bd079aec9
1 changed files with 4 additions and 2 deletions
|
@ -68,17 +68,19 @@
|
||||||
* to a possibly-modified form that will be invisible to C programs.
|
* to a possibly-modified form that will be invisible to C programs.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define CNAME(csym) csym
|
|
||||||
#define HIDENAME(asmsym) .asmsym
|
|
||||||
|
|
||||||
/* XXX should use .p2align 4,0x90 for -m486. */
|
/* XXX should use .p2align 4,0x90 for -m486. */
|
||||||
#define _START_ENTRY .text; .p2align 2,0x90
|
#define _START_ENTRY .text; .p2align 2,0x90
|
||||||
|
|
||||||
#if defined(__linux__) || defined(__FreeBSD__) || defined(__ELF__)
|
#if defined(__linux__) || defined(__FreeBSD__) || defined(__ELF__)
|
||||||
|
#define CNAME(csym) csym
|
||||||
|
#define HIDENAME(asmsym) .asmsym
|
||||||
#define _ENTRY(x) _START_ENTRY; \
|
#define _ENTRY(x) _START_ENTRY; \
|
||||||
.globl CNAME(x); .type CNAME(x),@function; CNAME(x):
|
.globl CNAME(x); .type CNAME(x),@function; CNAME(x):
|
||||||
#define END(x) .size x, . - x
|
#define END(x) .size x, . - x
|
||||||
#elif defined(__WIN32__)
|
#elif defined(__WIN32__)
|
||||||
|
#define CNAME(csym) _##csym
|
||||||
|
#define HIDENAME(asmsym) .asmsym
|
||||||
#define _ENTRY(x) \
|
#define _ENTRY(x) \
|
||||||
_START_ENTRY; .globl CNAME(x) ; .def CNAME(X);\
|
_START_ENTRY; .globl CNAME(x) ; .def CNAME(X);\
|
||||||
.scl 2;.type 32;.endef; CNAME(x):
|
.scl 2;.type 32;.endef; CNAME(x):
|
||||||
|
|
Loading…
Reference in a new issue