Skip to content

Commit 995c70e

Browse files
committed
add win64 compat definitions also
1 parent 2eb1876 commit 995c70e

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

amd64/bsd_asm.h

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,16 @@
6868
#define END(x) .size x, . - x
6969

7070
#elif defined(_WIN32)
71-
#define _ENTRY(x) _START_ENTRY; \
71+
#ifndef _MSC_VER
72+
#define END(x) .end
73+
#define _START_ENTRY_WIN .text; _START_ENTRY
74+
#else
75+
#define END(x) end
76+
#define _START_ENTRY_WIN .model small; .code; _START_ENTRY
77+
#endif
78+
#define _ENTRY(x) _START_ENTRY_WIN; \
7279
.globl CNAME(x); .section .drectve; .ascii " -export:" #x; \
7380
.section .text; .def CNAME(x); .scl 2; .type 32; .endef; CNAME(x):
74-
#define END(x) .end
75-
7681
#endif
7782

7883
#ifdef PROF

i387/bsd_asm.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,9 @@
8181
#elif defined(_WIN32)
8282
#ifndef _MSC_VER
8383
#define END(x) .end
84-
#define HEX(Y) 0x#Y
8584
#define _START_ENTRY_WIN .text; _START_ENTRY
8685
#else
8786
#define END(x) end
88-
#define HEX(Y) Y#h
8987
#define _START_ENTRY_WIN .model small; .code; _START_ENTRY
9088
#endif
9189
#define CNAME(csym) _##csym

0 commit comments

Comments
 (0)