X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/615a9936a47445caccdabbf68263af3432f1f109..57f2b902bc98b0764d9cd830bdaad2d6213123c2:/src/tiff/tif_luv.c diff --git a/src/tiff/tif_luv.c b/src/tiff/tif_luv.c index 413c6c1e2f..5adaa54e0f 100644 --- a/src/tiff/tif_luv.c +++ b/src/tiff/tif_luv.c @@ -608,9 +608,12 @@ LogLuvEncodeTile(TIFF* tif, tidata_t bp, tsize_t cc, tsample_t s) #else #define LOGOF2 0.69314718055994530942 #endif +#ifndef log2 #define log2(x) ((1./LOGOF2)*log(x)) +#endif +#ifndef exp2 #define exp2(x) exp(LOGOF2*(x)) - +#endif #define UVSCALE 410. static double