Don't compile crc32c-intel on non-x86 platforms
[fio.git] / crc / crc32c.h
index cf1713692b76e82efeb516740d0a1275875c70d1..0976261ac61832a9b36e1ab50a93b6c59b60d8f7 100644 (file)
 #ifndef CRC32C_H
 #define CRC32C_H
 
+#include "../arch/arch.h"
+
 extern uint32_t crc32c(unsigned char const *, unsigned long);
+
+#ifdef ARCH_HAVE_SSE
 extern uint32_t crc32c_intel(unsigned char const *, unsigned long);
+#else
+#define crc32c_intel crc32c
+#endif
 
 #endif