From: Anton Mitrofanov Date: Thu, 17 Oct 2013 20:38:06 +0000 (+0400) Subject: Fix compilation in case of HAVE_LOG2F check fails spuriously X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=03450be799dea03a83dad4dc833ef8ddd7f36b62;p=libx264 Fix compilation in case of HAVE_LOG2F check fails spuriously --- diff --git a/common/osdep.h b/common/osdep.h index dba1eb07..054953d3 100644 --- a/common/osdep.h +++ b/common/osdep.h @@ -37,6 +37,12 @@ #include "config.h" +#ifdef __INTEL_COMPILER +#include +#else +#include +#endif + #if !HAVE_LOG2F #define log2f(x) (logf(x)/0.693147180559945f) #define log2(x) (log(x)/0.693147180559945) @@ -51,12 +57,6 @@ #define S_ISREG(x) (((x) & S_IFMT) == S_IFREG) #endif -#ifdef __INTEL_COMPILER -#include -#else -#include -#endif - #if (defined(__GNUC__) || defined(__INTEL_COMPILER)) && (ARCH_X86 || ARCH_X86_64) #define HAVE_X86_INLINE_ASM 1 #endif