summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/X64
diff options
context:
space:
mode:
authorLiming Gao <liming.gao@intel.com>2019-10-17 14:55:48 +0800
committerLiming Gao <liming.gao@intel.com>2019-10-24 09:41:32 +0800
commit70bebafd1b77e6edd034a12ba47656669a833a80 (patch)
treefe14ae4ee449f23e370a0d03e977c0392bc3683b /MdePkg/Include/X64
parent3d312a1fec2eff60212859849fdb407018e47ca8 (diff)
downloadedk2-70bebafd1b77e6edd034a12ba47656669a833a80.tar.gz
edk2-70bebafd1b77e6edd034a12ba47656669a833a80.tar.bz2
edk2-70bebafd1b77e6edd034a12ba47656669a833a80.zip
MdePkg Base.h: Add definition for CLANG9 tool chain
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1603 CLANG9 tool chain defines __clang__ macro only, doesn't define __GNUC__ macro. But, it uses some same definitions with GCC. So, update base definition for CLANG9 tool chain. Signed-off-by: Liming Gao <liming.gao@intel.com> Cc: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Philippe Mathieu-Daude <philmd@redhat.com> Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
Diffstat (limited to 'MdePkg/Include/X64')
-rw-r--r--MdePkg/Include/X64/ProcessorBind.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/MdePkg/Include/X64/ProcessorBind.h b/MdePkg/Include/X64/ProcessorBind.h
index 6f65acd609..387e9c5c9c 100644
--- a/MdePkg/Include/X64/ProcessorBind.h
+++ b/MdePkg/Include/X64/ProcessorBind.h
@@ -313,7 +313,7 @@ typedef INT64 INTN;
#define EFIAPI
#endif
-#if defined(__GNUC__)
+#if defined(__GNUC__) || defined(__clang__)
///
/// For GNU assembly code, .global or .globl can declare global symbols.
/// Define this macro to unify the usage.