[x264-devel] fix for MSVC

David Lariviere dal2103 at columbia.edu
Mon Mar 31 15:30:21 CEST 2008


See attached. 

- David

-----Original Message-----
From: x264-devel-bounces at videolan.org
[mailto:x264-devel-bounces at videolan.org] On Behalf Of Guillaume Poirier
Sent: Monday, March 31, 2008 9:04 AM
To: Mailing list for x264 developers
Subject: Re: [x264-devel] fix for MSVC

Hello,

David Lariviere wrote:
> To fix building on MSVC, need to
> 1) add cabac-a.asm to Core\x86 (and set custom build step to match all
other
> *.a files in same folder group)
> 2) Add the below to osdep.h
> //fixes logf bug in MSVC's math.h
> //see
>
http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?Feedbac
> kID=98751
> //note this will only work if math.h is included before osdep.h
> #ifdef _MSC_VER
> #if !defined (_M_IA64) && !defined (_M_AMD64)
> #undef logf
> #define logf(x)     ((float)log((double)(x)))
> #endif    // !defined (_M_IA64) && !defined (_M_AMD64)
> #endif 
>
> Tested (and mentioned bug manifested) on MSVC 2003. 


Please submit a patch.

Guillaume
_______________________________________________
x264-devel mailing list
x264-devel at videolan.org
http://mailman.videolan.org/listinfo/x264-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0808-fixes-MSVC.patch
Type: application/octet-stream
Size: 0 bytes
Desc: not available
Url : http://mailman.videolan.org/pipermail/x264-devel/attachments/20080331/030d480e/attachment-0001.obj 


More information about the x264-devel mailing list