]> git.saurik.com Git - wxWidgets.git/blobdiff - src/tiff/tif_luv.c
fixed a (harmless) BoundsChecker warning
[wxWidgets.git] / src / tiff / tif_luv.c
index 413c6c1e2f1f8a251123d2a381e1ae8156a372bd..5adaa54e0fe6ef795d80282d324c2d521e9b726f 100644 (file)
@@ -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