Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 1 | don't break with old compilers and -DGNU_EFI_USE_MS_ABI |
| 2 | It's entirely legitimate to request GNU_EFI_USE_MS_ABI even if the current |
| 3 | compiler doesn't support it, and gnu-efi should transparently fall back to |
| 4 | using legacy techniques to set the calling convention. We don't get type |
| 5 | checking, but at least it will still compile. |
| 6 | |
| 7 | Author: Steve Langasek <steve.langasek@ubuntu.com> |
| 8 | Upstream-Status: Pending |
| 9 | Index: gnu-efi-3.0.3/inc/x86_64/efibind.h |
| 10 | =================================================================== |
| 11 | --- gnu-efi-3.0.3.orig/inc/x86_64/efibind.h |
| 12 | +++ gnu-efi-3.0.3/inc/x86_64/efibind.h |
| 13 | @@ -25,8 +25,6 @@ Revision History |
| 14 | #if defined(GNU_EFI_USE_MS_ABI) |
| 15 | #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)) |
| 16 | #define HAVE_USE_MS_ABI 1 |
| 17 | - #else |
| 18 | - #error Compiler is too old for GNU_EFI_USE_MS_ABI |
| 19 | #endif |
| 20 | #endif |
| 21 | |