tcoder.c: define NOT_HAVE_LOG2 for MSVC builds

no version of msvc currently implements log2(). unconditionally define
NOT_HAVE_LOG2 in this case to simplify building libwebp sources in other
projects.

Change-Id: Ia9d985b1125553c5a8271d7e539bc1b4f898d749
This commit is contained in:
James Zern 2012-05-03 16:59:13 -07:00
parent 9a214fa112
commit c04eb7be9d

View File

@ -88,6 +88,10 @@
extern "C" {
#endif
#if defined(_MSC_VER) && !defined(NOT_HAVE_LOG2)
# define NOT_HAVE_LOG2 1
#endif
#ifdef NOT_HAVE_LOG2
static double log2(double d) {
const double kLog2Reciprocal = 1.442695040888963;