Introduce MBEDTLS_COMPILER_IS_GCC
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
diff --git a/library/common.h b/library/common.h
index b48a1fc..cfbff02 100644
--- a/library/common.h
+++ b/library/common.h
@@ -195,4 +195,10 @@
#define MBEDTLS_UNLIKELY(x) x
#endif
+#if defined(__GNUC__) && !defined(__ARMCC_VERSION) && !defined(__clang__) \
+ && !defined(__llvm__) && !defined(__INTEL_COMPILER)
+/* Defined if the compiler really is gcc and not clang, etc */
+#define MBEDTLS_COMPILER_IS_GCC
+#endif
+
#endif /* MBEDTLS_LIBRARY_COMMON_H */