[x264-devel] fix for MSVC
Loren Merritt
lorenm at u.washington.edu
Wed Apr 2 12:58:21 CEST 2008
On Mon, 31 Mar 2008, David Lariviere wrote:
> --- a/build/win32/libx264.vcproj
> +++ b/build/win32/libx264.vcproj
> @@ -843,7 +843,7 @@
> </FileConfiguration>
> </File>
> <File
> - RelativePath="..\..\common\predict.c">
> + RelativePath="..\..\common\x86\predict-c.c">
> <FileConfiguration
> Name="Release|Win32">
> <Tool
> @@ -877,7 +877,7 @@
> </FileConfiguration>
> </File>
> <File
> - RelativePath="..\..\common\x86\predict-c.c">
> + RelativePath="..\..\common\predict.c">
> <FileConfiguration
> Name="Release|Win32">
> <Tool
Cosmetics. If msvc insists on adding whitespace and reordering statements,
then undo that before submitting the patch. Or you could just
write the project file using a text editor; probably easier that way.
> --- a/common/osdep.h
> +++ b/common/osdep.h
> @@ -31,6 +31,17 @@
> #include <inttypes.h>
> #endif
>
> +//fixes logf bug in MSVC's math.h
> +//see http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=98751
> +//note this will only work if math.h is included after 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
According to that url, not only is it a bug in msvc, it was fixed 2 years
ago. So I won't accept a workaround.
P.S. don't top-post. If I dropped all support for anything related to MS,
would that make the top-posters go away?
--Loren Merritt
More information about the x264-devel
mailing list