File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments