Don't fail for Clang builds, which pretend to be an ancient GCC.

Reported by pkubaj.
This commit is contained in:
Mike Pall 2023-01-04 10:30:59 +01:00
parent a04480e311
commit a4f4f5b835

View File

@ -466,11 +466,17 @@
#endif
#endif
#elif !LJ_TARGET_PS3
#if __clang__
#if ((__clang_major__ < 3) || ((__clang_major__ == 3) && __clang_minor__ < 5))
#error "Need at least Clang 3.5 or newer"
#endif
#else
#if (__GNUC__ < 4) || ((__GNUC__ == 4) && __GNUC_MINOR__ < 3)
#error "Need at least GCC 4.3 or newer"
#endif
#endif
#endif
#endif
/* Check target-specific constraints. */
#ifndef _BUILDVM_H