diff options
Diffstat (limited to 'rts/LinkerInternals.h')
-rw-r--r-- | rts/LinkerInternals.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/rts/LinkerInternals.h b/rts/LinkerInternals.h index 16fbab2b29..a04db77b92 100644 --- a/rts/LinkerInternals.h +++ b/rts/LinkerInternals.h @@ -91,7 +91,8 @@ typedef struct ForeignExportStablePtr_ { struct ForeignExportStablePtr_ *next; } ForeignExportStablePtr; -#if powerpc_HOST_ARCH || x86_64_HOST_ARCH || arm_HOST_ARCH +#if defined(powerpc_HOST_ARCH) || defined(x86_64_HOST_ARCH) \ + || defined(arm_HOST_ARCH) /* ios currently uses adjacent got tables, and no symbol extras */ #if !defined(ios_HOST_OS) #define NEED_SYMBOL_EXTRAS 1 @@ -102,17 +103,17 @@ typedef struct ForeignExportStablePtr_ { * address relocations on the PowerPC, x86_64 and ARM. */ typedef struct { -#ifdef powerpc_HOST_ARCH +#if defined(powerpc_HOST_ARCH) struct { short lis_r12, hi_addr; short ori_r12_r12, lo_addr; long mtctr_r12; long bctr; } jumpIsland; -#elif x86_64_HOST_ARCH +#elif defined(x86_64_HOST_ARCH) uint64_t addr; uint8_t jumpIsland[6]; -#elif arm_HOST_ARCH +#elif defined(arm_HOST_ARCH) uint8_t jumpIsland[16]; #endif } SymbolExtra; @@ -283,7 +284,7 @@ ObjectCode* mkOc( pathchar *path, char *image, int imageSize, int misalignment ); -#if defined (mingw32_HOST_OS) +#if defined(mingw32_HOST_OS) /* We use myindex to calculate array addresses, rather than simply doing the normal subscript thing. That's because some of the above structs have sizes which are not |