Browse Source

Version checks in inc/x86_64/efibind.h for ms_abi support gives
false negative for clang.

Signed-off-by: toazzz < toal193@users.sf.net>
Signed-off-by: Nigel Croxon <ncroxon@redhat.com>

Nigel Croxon 8 years ago
parent
commit
79f4f38d15
1 changed files with 1 additions and 1 deletions
  1. 1 1
      inc/x86_64/efibind.h

+ 1 - 1
inc/x86_64/efibind.h

@@ -23,7 +23,7 @@ Revision History
 #endif
 
 #if defined(GNU_EFI_USE_MS_ABI)
-    #if defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7))
+    #if (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 7)))||(defined(__clang__) && (__clang_major__ > 3 || (__clang_major__ == 3 && __clang_minor__ >= 2)))
         #define HAVE_USE_MS_ABI 1
     #elif defined(__clang__)
         #define HAVE_USE_MS_ABI 1