From 89bb4aa6259af9f35cc082d8816509d99ca1edb8 Mon Sep 17 00:00:00 2001 From: Orange Date: Thu, 18 Sep 2025 05:22:22 +0300 Subject: [PATCH] Guards AVX2 usage with a preprocessor definition Ensures that AVX2 intrinsics are only included when the OMATH_USE_AVX2 preprocessor definition is set. This prevents compilation errors when AVX2 support is not available or explicitly disabled. --- include/omath/linear_algebra/mat.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/omath/linear_algebra/mat.hpp b/include/omath/linear_algebra/mat.hpp index d6f2d33..c5803d7 100644 --- a/include/omath/linear_algebra/mat.hpp +++ b/include/omath/linear_algebra/mat.hpp @@ -10,7 +10,10 @@ #include #include #include + +#ifdef OMATH_USE_AVX2 #include +#endif namespace omath {