mirror of
https://github.com/recp/cglm.git
synced 2025-12-24 12:32:40 +00:00
__builtin_assume_aligned is available since GCC 4.7, but __has_builtin was added much later. Check for the GCC version if __has_builtin is not available. Users can also define CGLM_HAVE_BUILTIN_ASSUME_ALIGNED to either 1 or 0 to explicitly enable/disable the use of __builtin_assume_aligned. Meson will do it automatically (by performing a configure-time test).