X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/615a9936a47445caccdabbf68263af3432f1f109..7aa5864467bf0bb220fdc447876f13f178ae8f35:/src/tiff/tif_luv.c?ds=sidebyside 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