diff options
| author | myd7349 <myd7349@gmail.com> | 2019-01-27 08:31:21 +0800 |
|---|---|---|
| committer | Codiferous <44823842+Codiferous@users.noreply.github.com> | 2019-01-26 16:31:21 -0800 |
| commit | 65d866786a3d32ab5791bf8ec16ee219540f0648 (patch) | |
| tree | f74366296c3db82277c6db45220d375625e56138 /ports/xsimd/PatchHeaderIncludeGuard.patch | |
| parent | ebb2d1a44fa74f4928bfb1e229e343bd4a721472 (diff) | |
| download | vcpkg-65d866786a3d32ab5791bf8ec16ee219540f0648.tar.gz vcpkg-65d866786a3d32ab5791bf8ec16ee219540f0648.zip | |
[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.
Diffstat (limited to 'ports/xsimd/PatchHeaderIncludeGuard.patch')
| -rw-r--r-- | ports/xsimd/PatchHeaderIncludeGuard.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ports/xsimd/PatchHeaderIncludeGuard.patch b/ports/xsimd/PatchHeaderIncludeGuard.patch new file mode 100644 index 000000000..73ba4a9bf --- /dev/null +++ b/ports/xsimd/PatchHeaderIncludeGuard.patch @@ -0,0 +1,24 @@ +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 |
