From 53a6a7faa01aa0c6a65ee875c7d59c2405278890 Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Mon, 25 Jan 2010 19:06:56 +0100 Subject: ape plugin compile fix on unknown architectures --- plugins/ffap/ffap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/ffap') diff --git a/plugins/ffap/ffap.c b/plugins/ffap/ffap.c index 60985729..b8457099 100644 --- a/plugins/ffap/ffap.c +++ b/plugins/ffap/ffap.c @@ -1235,7 +1235,7 @@ typedef int64_t x86_reg; # define REGSP esp typedef int32_t x86_reg; #else -#warning unknown arch +#warning unknown arch, SIMD optimizations will be disabled typedef int x86_reg; #endif @@ -1822,7 +1822,7 @@ static DB_decoder_t plugin = { .filetypes = filetypes }; -#ifdef HAVE_SSE2 +#if HAVE_SSE2 && !ARCH_UNKNOWN #define FF_MM_MMX 0x0001 ///< standard MMX #define FF_MM_3DNOW 0x0004 ///< AMD 3DNOW @@ -1928,7 +1928,7 @@ int mm_support(void) DB_plugin_t * ffap_load (DB_functions_t *api) { // detect sse2 -#ifdef HAVE_SSE2 +#if HAVE_SSE2 && !ARCH_UNKNOWN trace ("ffap: was compiled with sse2 support\n"); int mm_flags = mm_support (); if (mm_flags & FF_MM_SSE2) { -- cgit v1.2.3