mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- Fixed GCC autoseg stuff for DECORATE variable initialization.
SVN r1273 (trunk)
This commit is contained in:
parent
30ef6a0c2d
commit
a4afe79f3d
2 changed files with 3 additions and 3 deletions
|
@ -58,7 +58,7 @@ void *MRegTail = 0;
|
|||
void *ARegTail __attribute__((section(AREG_SECTION))) = 0;
|
||||
void *CRegTail __attribute__((section(CREG_SECTION))) = 0;
|
||||
void *GRegTail __attribute__((section(GREG_SECTION))) = 0;
|
||||
void *MRegTail __attribute__((section(GREG_SECTION))) = 0;
|
||||
void *MRegTail __attribute__((section(MREG_SECTION))) = 0;
|
||||
|
||||
#elif
|
||||
|
||||
|
|
|
@ -326,11 +326,11 @@ int MatchString (const char *in, const char **strings);
|
|||
|
||||
#define DEFINE_GLOBAL_VARIABLE(name) \
|
||||
static FVariableInfo GlobalDef__##name = { #name, intptr_t(&name), NULL }; \
|
||||
MSVC_MSEG FVariableInfo *infoptr_GlobalDef__##name = &GlobalDef__##name;
|
||||
MSVC_MSEG FVariableInfo *infoptr_GlobalDef__##name GCC_MSEG = &GlobalDef__##name;
|
||||
|
||||
#define DEFINE_MEMBER_VARIABLE(name, cls) \
|
||||
static FVariableInfo GlobalDef__##name = { #name, myoffsetof(cls, name), RUNTIME_CLASS(cls) }; \
|
||||
MSVC_MSEG FVariableInfo *infoptr_GlobalDef__##name = &GlobalDef__##name;
|
||||
MSVC_MSEG FVariableInfo *infoptr_GlobalDef__##name GCC_MSEG = &GlobalDef__##name;
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue