+ Antonin verified that the MacOS build of JPWL module suffered from a missing defini...
[openjpeg.git] / jpwl / rs.h
index b303af79daf01ea2d44161edb339e6edc3d22cb6..047d9c2f55887816c081f3f7af57a8b6ccb16f43 100644 (file)
--- a/jpwl/rs.h
+++ b/jpwl/rs.h
@@ -94,6 +94,15 @@ int encode_rs(dtype data[], dtype bb[]);
  */
 int eras_dec_rs(dtype data[], int eras_pos[], int no_eras);
 
+/**
+Computes the minimum between two integers
+@param a first integer to compare
+@param b second integer to compare
+@return returns the minimum integer between a and b
+*/
+#ifndef min
+#define min(a,b)    (((a) < (b)) ? (a) : (b))
+#endif /* min */
 
 #endif /* __CRC32_HEADER__ */