[Poppler-bugs] [Bug 88511] Fix builds with Visual Studio 2013

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sat Jan 17 10:03:09 PST 2015


https://bugs.freedesktop.org/show_bug.cgi?id=88511

--- Comment #7 from Tamas Szekeres <szekerest at gmail.com> ---
(In reply to Adrian Johnson from comment #6)
> > -#if defined(_MSC_VER)
> > +#if defined(_MSC_VER) && (_MSC_VER <= 1700)
> 
> According to
> 
> http://stackoverflow.com/questions/70013/how-to-detect-if-im-compiling-code-
> with-visual-studio-2008
> 
> 1700 is Visual Studio 2012. 
> 
> According to 
> 
> http://msdn.microsoft.com/en-us/library/hh308439%28v=vs.110%29.aspx
> 
> fmax is available in 2012 and 2013. Should that _MSC_VER check be for < 1700?

That might be working, though it would require to modify further files (in
which fmax and fmin are used) by including the appropriate header to be able to
compile with VS2012.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler-bugs/attachments/20150117/41b1c9f2/attachment.html>


More information about the Poppler-bugs mailing list