summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Greenan <kmg@box.com>2015-03-17 11:29:39 -0700
committerKevin Greenan <kmg@box.com>2015-03-17 11:29:39 -0700
commita2f17bcd63006e24da1090587bae193a3a16bab8 (patch)
treed1419df92bb7e867e8dacb800ec78220a225c819
parent4e1290ea61e5dba3e782155f426e4e492664d525 (diff)
downloadliberasurecode-a2f17bcd63006e24da1090587bae193a3a16bab8.tar.gz
Fixing bug where non-Intel platforms fail to compile due to SSE2-specific header in the xor-encoder.
FWIW, we did conditional compilation in the body of the code, but missed the header include.
-rw-r--r--src/builtin/xor_codes/xor_code.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/builtin/xor_codes/xor_code.c b/src/builtin/xor_codes/xor_code.c
index 32defcc..8a337cb 100644
--- a/src/builtin/xor_codes/xor_code.c
+++ b/src/builtin/xor_codes/xor_code.c
@@ -22,7 +22,9 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#ifdef INTEL_SSE2
#include <emmintrin.h> //SSE2
+#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>