Skip to content

Commit

Permalink
Undo a msvcrt hack (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
MichalStrehovsky authored Sep 1, 2022
1 parent 03a0be7 commit 0ab4d82
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/native/external/brotli/enc/fast_log.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ BROTLI_INTERNAL extern const double kBrotliLog2Table[BROTLI_LOG2_TABLE_SIZE];

/* Visual Studio 2012 and Android API levels < 18 do not have the log2()
* function defined, so we use log() and a multiplication instead. */
//#if !defined(BROTLI_HAVE_LOG2)
//#if ((defined(_MSC_VER) && _MSC_VER <= 1700) || \
// (defined(__ANDROID_API__) && __ANDROID_API__ < 18))
#if !defined(BROTLI_HAVE_LOG2)
#if ((defined(_MSC_VER) && _MSC_VER <= 1700) || \
(defined(__ANDROID_API__) && __ANDROID_API__ < 18))
#define BROTLI_HAVE_LOG2 0
//#else
//#define BROTLI_HAVE_LOG2 1
//#endif
//#endif
#else
#define BROTLI_HAVE_LOG2 1
#endif
#endif

#define LOG_2_INV 1.4426950408889634

Expand Down

0 comments on commit 0ab4d82

Please sign in to comment.