Small change to exported symbol names on windows

This commit is contained in:
Keno Fischer 2012-05-25 21:33:12 -04:00
parent adb103acec
commit 4bd079aec9
1 changed files with 4 additions and 2 deletions

View File

@ -68,17 +68,19 @@
* 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. */
#define _START_ENTRY .text; .p2align 2,0x90
#if defined(__linux__) || defined(__FreeBSD__) || defined(__ELF__)
#define CNAME(csym) csym
#define HIDENAME(asmsym) .asmsym
#define _ENTRY(x) _START_ENTRY; \
.globl CNAME(x); .type CNAME(x),@function; CNAME(x):
#define END(x) .size x, . - x
#elif defined(__WIN32__)
#define CNAME(csym) _##csym
#define HIDENAME(asmsym) .asmsym
#define _ENTRY(x) \
_START_ENTRY; .globl CNAME(x) ; .def CNAME(X);\
.scl 2;.type 32;.endef; CNAME(x):