vcpkg/ports/xsimd/PatchHeaderIncludeGuard.patch
myd7349 65d866786a [xsimd] Add new port (#5194)
* [xsimd] Add new port

* Add a header include guard to xsimd's algorithm.hpp

algorithm.hpp is not guarded by a header include guard, which can cause
difficulty for users. xhihaoy asked that we be sure to include this
patch because it caused a lot of pain.
2019-01-26 16:31:21 -08:00

25 lines
641 B
Diff

diff --git a/include/xsimd/stl/algorithms.hpp b/include/xsimd/stl/algorithms.hpp
index 4cb2b79..1590b89 100644
--- a/include/xsimd/stl/algorithms.hpp
+++ b/include/xsimd/stl/algorithms.hpp
@@ -6,6 +6,9 @@
* The full license is in the file LICENSE, distributed with this software. *
****************************************************************************/
+#ifndef XSIMD_ALGORITHMS_HPP
+#define XSIMD_ALGORITHMS_HPP
+
#include "xsimd/memory/xsimd_load_store.hpp"
namespace xsimd
@@ -126,4 +129,6 @@ namespace xsimd
#undef XSIMD_LOOP_MACRO
}
-}
\ No newline at end of file
+}
+
+#endif
\ No newline at end of file