]> git.sesse.net Git - x264/commitdiff
Fix compilation in case of HAVE_LOG2F check fails spuriously
authorAnton Mitrofanov <BugMaster@narod.ru>
Thu, 17 Oct 2013 20:38:06 +0000 (00:38 +0400)
committerFiona Glaser <fiona@x264.com>
Thu, 24 Oct 2013 19:15:57 +0000 (12:15 -0700)
common/osdep.h

index dba1eb071a5f62dcaf22ff5ecf9ffd0b0dcf9044..054953d38fd8405ee6393ebc52ae04904fb8bfb9 100644 (file)
 
 #include "config.h"
 
+#ifdef __INTEL_COMPILER
+#include <mathimf.h>
+#else
+#include <math.h>
+#endif
+
 #if !HAVE_LOG2F
 #define log2f(x) (logf(x)/0.693147180559945f)
 #define log2(x) (log(x)/0.693147180559945)
 #define S_ISREG(x) (((x) & S_IFMT) == S_IFREG)
 #endif
 
-#ifdef __INTEL_COMPILER
-#include <mathimf.h>
-#else
-#include <math.h>
-#endif
-
 #if (defined(__GNUC__) || defined(__INTEL_COMPILER)) && (ARCH_X86 || ARCH_X86_64)
 #define HAVE_X86_INLINE_ASM 1
 #endif