summaryrefslogtreecommitdiff
path: root/snappy.cc
diff options
context:
space:
mode:
authoralkis <alkis@google.com>2017-01-30 12:57:14 -0800
committerVictor Costan <pwnall@chromium.org>2017-03-07 18:09:49 -0800
commit626e1b9faa81e6f744b8b101ab0cf94c5927d15a (patch)
tree086c18147ab32bcfa6280a2c073483696a95f360 /snappy.cc
parent2d99bd14d471664758e4dfdf81b44f413a7353fd (diff)
downloadsnappy-626e1b9faa81e6f744b8b101ab0cf94c5927d15a.tar.gz
snappy-626e1b9faa81e6f744b8b101ab0cf94c5927d15a.tar.bz2
snappy-626e1b9faa81e6f744b8b101ab0cf94c5927d15a.zip
Use #ifdef __SSE2__ for the emmintrin.h include, otherwise snappy.cc does not compile with -march=prescott.
Diffstat (limited to 'snappy.cc')
-rw-r--r--snappy.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/snappy.cc b/snappy.cc
index 4bcea0b..956db1a 100644
--- a/snappy.cc
+++ b/snappy.cc
@@ -30,7 +30,7 @@
#include "snappy-internal.h"
#include "snappy-sinksource.h"
-#if defined(__x86_64__) || defined(_M_X64)
+#ifdef __SSE2__
#include <emmintrin.h>
#endif
#include <stdio.h>