diff options
author | Nigel Croxon <nigel.croxon@hpe.com> | 2015-09-23 10:03:31 -0400 |
---|---|---|
committer | Nigel Croxon <nigel.croxon@hpe.com> | 2015-09-23 10:03:31 -0400 |
commit | 9ce3546d057283f4ce259e257f0f491973492e95 (patch) | |
tree | 039318fa45f3c0edaa334058bbcb9b2be19fe925 /inc/ia64 | |
parent | 0b5f181a36c20ea8dd79111c8d078da98903fb5e (diff) | |
download | gnu-efi-9ce3546d057283f4ce259e257f0f491973492e95.tar.gz |
From: Pete Batard <pete@akeo.ie>
Subject: [PATCH] Fix MSVC breakage due to GNU align extensions in setjmp
* __attribute__((__aligned__(x))), which is used in setjmp, is GNU only => use a macro instead
Signed-off-by: Pete Batard <pete@akeo.ie>
Signed-off-by: Nigel Croxon <nigel.croxon@hpe.com>
Diffstat (limited to 'inc/ia64')
-rw-r--r-- | inc/ia64/efisetjmp_arch.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/inc/ia64/efisetjmp_arch.h b/inc/ia64/efisetjmp_arch.h index dadbe64..3afa044 100644 --- a/inc/ia64/efisetjmp_arch.h +++ b/inc/ia64/efisetjmp_arch.h @@ -1,6 +1,8 @@ #ifndef GNU_EFI_IA64_SETJMP_H #define GNU_EFI_IA64_SETJMP_H +#define JMPBUF_ALIGN 0x10 + typedef struct { UINT64 F2[2]; UINT64 F3[2]; @@ -40,6 +42,6 @@ typedef struct { UINT64 Predicates; UINT64 LoopCount; UINT64 FPSR; -} __attribute__((__aligned__(0x10))) jmp_buf; +} ALIGN(JMPBUF_ALIGN) jmp_buf; #endif /* GNU_EFI_IA64_SETJMP_H */ |