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)
committerJason Garrett-Glaser <jason@x264.com>
Thu, 24 Oct 2013 19:15:57 +0000 (12:15 -0700)
common/osdep.h

index dba1eb0..054953d 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