1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00

databases/tiledb: Simplify _xgetbv check

This commit is contained in:
Po-Chuan Hsieh 2022-01-24 02:17:31 +08:00
parent aea7be0300
commit 33321a413b
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B

View File

@ -5,7 +5,7 @@
https://software.intel.com/en-us/articles/how-to-detect-new-instruction-support-in-the-4th-generation-intel-core-processor-family
*/
+
+#if defined(__clang_major__) && __clang_major__ < 9
+#if !defined(_xgetbv)
static inline uint64_t
_xgetbv(uint32_t xcr) {
uint32_t eax, edx;