mirror of
https://github.com/webmproject/libwebp.git
synced 2025-02-13 07:22:52 +01:00
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" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(_MSC_VER) && !defined(NOT_HAVE_LOG2)
|
||||||
|
# define NOT_HAVE_LOG2 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef NOT_HAVE_LOG2
|
#ifdef NOT_HAVE_LOG2
|
||||||
static double log2(double d) {
|
static double log2(double d) {
|
||||||
const double kLog2Reciprocal = 1.442695040888963;
|
const double kLog2Reciprocal = 1.442695040888963;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user