Bug 754797 - libopus fails to compile on mingw - r=rillian
authorJacek Caban <jacek@codeweavers.com>
Tue, 15 May 2012 12:18:14 +0200
changeset 93980 975f2617b6392812e8d05e0b92433001c894ccf7
parent 93979 26fd69b1eec36115eaabf1ff62de10d5099b492f
child 93981 b15a3c5dd0e6abab3098e1134f827aaae2a6a74b
push id9403
push userjacek@codeweavers.com
push dateTue, 15 May 2012 10:18:54 +0000
treeherdermozilla-inbound@975f2617b639 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersrillian
bugs754797
milestone15.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 754797 - libopus fails to compile on mingw - r=rillian Define HAVE_LRINTF when compiling with GCC on Windows to avoid the MSVC assembly implementation in libopus/celt/float_cast.h.
media/libopus/Makefile.in
--- a/media/libopus/Makefile.in
+++ b/media/libopus/Makefile.in
@@ -20,16 +20,19 @@ DEFINES += \
   -Drestrict= \
   $(NULL)
 
 ifneq ($(filter $(OS_ARCH),Linux Darwin),)
   DEFINES += -DHAVE_LRINTF
 endif
 ifeq ($(OS_ARCH), WINNT)
   DEFINES += -Dinline=__inline
+ifdef GNU_CC
+  DEFINES += -DHAVE_LRINTF
+endif
 endif
 ifeq ($(OS_ARCH),AIX)
 DEFINES += -Dalloca=__alloca
 endif
 
 EXPORTS_NAMESPACES = opus
 
 EXPORTS_opus = \