From a9a390a930493bba3b64a20fb20e55f304062b0a Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 1 Jun 2015 19:43:06 -0700 Subject: Apply @marning suggested SSE auto-detect to make builds easier on non-x86 platforms: https://github.com/mwarning/ZeroTierOne/commit/aa2fd044cb69b97eef1ea38d5fefd18543aae22a --- node/Salsa20.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'node') diff --git a/node/Salsa20.hpp b/node/Salsa20.hpp index 0c1f3be4..9631a6db 100644 --- a/node/Salsa20.hpp +++ b/node/Salsa20.hpp @@ -7,10 +7,16 @@ #ifndef ZT_SALSA20_HPP #define ZT_SALSA20_HPP +#include #include +#include #include "Constants.hpp" +#if (!defined(ZT_SALSA20_SSE)) && (defined(__SSE2__) || defined(__WINDOWS__)) +#define ZT_SALSA20_SSE 1 +#endif + #ifdef ZT_SALSA20_SSE #include #endif // ZT_SALSA20_SSE -- cgit v1.2.3