Browse Source

GCC supports __has_builtin starting with version 10.

grojo-ea 1 year ago
parent
commit
123363eb82
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/Common/EABase/config/eacompiler.h

+ 1 - 1
include/Common/EABase/config/eacompiler.h

@@ -212,7 +212,7 @@
 
 	// EA_COMPILER_HAS_BUILTIN
 	#ifndef EA_COMPILER_HAS_BUILTIN
-		#if defined(__clang__)
+		#if defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 10))
 			#define EA_COMPILER_HAS_BUILTIN(x) __has_builtin(x)
 		#else
 			#define EA_COMPILER_HAS_BUILTIN(x) 0