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:
parent
9a214fa112
commit
c04eb7be9d
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user