Skip to content

Commit

Permalink
Refine the supported GCC versions
Browse files Browse the repository at this point in the history
GCC versions earlier than 10 are not supported.
  • Loading branch information
jserv committed Dec 25, 2023
1 parent 01cba29 commit 9b8c7cb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion sse2neon.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 9b8c7cb

Please sign in to comment.