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: http://www.zmx.ovh/git.videolan.org/?a=commitdiff_plain;h=c628e3bacabb3ec6aff74332c76a7879b80a7a3d;p=x264.git 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