Use #ifdef __SSE2__ for the emmintrin.h include, otherwise snappy.cc does not compile with -march=prescott.

This commit is contained in:
alkis 2017-01-30 12:57:14 -08:00 committed by Victor Costan
parent 2d99bd14d4
commit 626e1b9faa
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@
#include "snappy-internal.h" #include "snappy-internal.h"
#include "snappy-sinksource.h" #include "snappy-sinksource.h"
#if defined(__x86_64__) || defined(_M_X64) #ifdef __SSE2__
#include <emmintrin.h> #include <emmintrin.h>
#endif #endif
#include <stdio.h> #include <stdio.h>