File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 7070
7171
7272/* XXX should use .p2align 4,0x90 for -m486. */
73- #define _START_ENTRY .text; .p2align 2,0x90
73+ #define _START_ENTRY .p2align 2,0x90
7474
7575#if defined(__linux__ ) || defined(__FreeBSD__ ) || defined(__ELF__ )
7676#define CNAME (csym ) csym
7777#define HIDENAME (asmsym ) .asmsym
78- #define _ENTRY (x ) _START_ENTRY; \
78+ #define _ENTRY (x ) .text; _START_ENTRY; \
7979 .globl CNAME(x); .type CNAME(x),@function; CNAME(x):
8080#define END (x ) .size x, . - x
8181#elif defined(_WIN32 )
82+ #ifndef _MSC_VER
83+ #define END (x ) .end
84+ #define HEX (Y ) 0x#Y
85+ #define _START_ENTRY_WIN .text; _START_ENTRY
86+ #else
87+ #define END (x ) end
88+ #define HEX (Y ) Y#h
89+ #define _START_ENTRY_WIN .model small; .code; _START_ENTRY
90+ #endif
8291#define CNAME (csym ) _##csym
8392#define HIDENAME (asmsym ) .asmsym
84- #define _ENTRY (x ) _START_ENTRY ; \
93+ #define _ENTRY (x ) _START_ENTRY_WIN ; \
8594 .globl CNAME(x); .section .drectve; .ascii " -export:" #x; \
8695 .section .text; .def CNAME(x); .scl 2; .type 32; .endef; CNAME(x):
87- #define END (x ) .end
8896#endif
8997
9098#ifdef PROF
Original file line number Diff line number Diff line change 11#ifndef _CDEFS_COMPAT_H_
22#define _CDEFS_COMPAT_H_
33
4- #if defined(_MSC_VER ) && !defined(_WIN32 )
5- #define _WIN32
6- #endif
7-
84#ifndef _WIN32
95#include "sys/cdefs.h"
106#else /* _WIN32 */
Original file line number Diff line number Diff line change 11#ifndef _TYPES_COMPAT_H_
22#define _TYPES_COMPAT_H_
33
4- #if defined(_MSC_VER ) && !defined(_WIN32 )
5- #define _WIN32
6- #endif
7-
84#include <sys/types.h>
95#include <limits.h>
106#include <stdint.h>
You can’t perform that action at this time.
0 commit comments