From 4bd079aec999d9de5713aefdc8f2cf699cdaf55a Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Fri, 25 May 2012 21:33:12 -0400 Subject: [PATCH] Small change to exported symbol names on windows --- i387/bsd_asm.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/i387/bsd_asm.h b/i387/bsd_asm.h index ead1bd6..afd2e7a 100644 --- a/i387/bsd_asm.h +++ b/i387/bsd_asm.h @@ -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):