[OSKITTCP]

Don't add leading underscores to symbols on amd64 builds

svn path=/trunk/; revision=48250
This commit is contained in:
Timo Kreuzer 2010-07-25 12:34:56 +00:00
parent 592b4de3ba
commit b2b385e9a8

View file

@ -83,9 +83,14 @@ extern long timedelta;
#ifdef _MSC_VER #ifdef _MSC_VER
#define MAKE_SET(set, sym, type) #define MAKE_SET(set, sym, type)
#else #else
#if defined(_M_AMD64)
#define MAKE_SET(set, sym, type) \
asm(".stabs \"" #set "\", " #type ", 0, 0, " #sym)
#else
#define MAKE_SET(set, sym, type) \ #define MAKE_SET(set, sym, type) \
asm(".stabs \"_" #set "\", " #type ", 0, 0, _" #sym) asm(".stabs \"_" #set "\", " #type ", 0, 0, _" #sym)
#endif #endif
#endif
#define TEXT_SET(set, sym) MAKE_SET(set, sym, 23) #define TEXT_SET(set, sym) MAKE_SET(set, sym, 23)
#define DATA_SET(set, sym) MAKE_SET(set, sym, 25) #define DATA_SET(set, sym) MAKE_SET(set, sym, 25)
#define BSS_SET(set, sym) MAKE_SET(set, sym, 27) #define BSS_SET(set, sym) MAKE_SET(set, sym, 27)