From 9b8c7cb8b144fe1f0314e6f284b915ce1cc0669a Mon Sep 17 00:00:00 2001 From: Jim Huang Date: Tue, 26 Dec 2023 04:27:41 +0800 Subject: [PATCH] Refine the supported GCC versions GCC versions earlier than 10 are not supported. --- sse2neon.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sse2neon.h b/sse2neon.h index 8e0044a9..8c840535 100644 --- a/sse2neon.h +++ b/sse2neon.h @@ -104,6 +104,10 @@ #pragma message("Macro name collisions may happen with unsupported compilers.") #endif +#if defined(__GNUC__) && __GNUC__ < 10 +#warning "GCC versions earlier than 10 are not supported." +#endif + /* C language does not allow initializing a variable with a function call. */ #ifdef __cplusplus #define _sse2neon_const static const @@ -130,7 +134,7 @@ #endif #if !defined(__cplusplus) -#error sse2neon only supports C++ compilation with this compiler +#error SSE2NEON only supports C++ compilation with this compiler #endif #ifdef SSE2NEON_ALLOC_DEFINED