mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-15 02:59:11 +08:00
14 lines
532 B
Diff
14 lines
532 B
Diff
|
diff --git a/src/lib/OpenEXRCore/unpack.c b/src/lib/OpenEXRCore/unpack.c
|
||
|
index 7587eb2..79061b8 100644
|
||
|
--- a/src/lib/OpenEXRCore/unpack.c
|
||
|
+++ b/src/lib/OpenEXRCore/unpack.c
|
||
|
@@ -37,7 +39,7 @@ half_to_float8 (float* out, const uint16_t* src)
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
-#if (defined(__x86_64__) || defined(_M_X64)) && \
|
||
|
+#if (defined(__x86_64__) || defined(_M_X64)) && defined(__AVX__) && \
|
||
|
(defined(__F16C__) || defined(__GNUC__) || defined(__clang__))
|
||
|
|
||
|
# if defined(__F16C__)
|