mirror of
https://github.com/google/brotli.git
synced 2026-07-08 17:56:58 +00:00
[PR #122] Fix vs2010 #735
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/google/brotli/pull/122
State: closed
Merged: No
I get the following errors on Windows using Visual Studio 2010 when trying to compile the Python extension:
The patch tries to fix both issues.
For the
kInfinityconstant, I usestd::numeric_limits::infinityas found in the<limits>header.For the
log2function (missing from Visual Studio 2010) which is used inbackward_references.cc, I define a new_log2function insidefast_log.h. This MSVC specific workaround was previously incorporated in theFastLog2function, so I just extracted it from there.We need to support Visual Studio 2010, otherwise it's not possible to compile the Python extension for Windows (Python 3.4 for Windows from Python.org is still built using Visual Studio 2010).
Cheers,
Cosimo