[v2.0] Fixed problem with Borland C++ Builder (Borland C do not have lrintf). Thanks...
[openjpeg.git] / libopenjpeg / opj_includes.h
index d4ed1ae1e752e0a47da2d5c8abf93ac3f71db915..dbf0f505ffad5016ce2d7058447b726ab13c87b3 100644 (file)
@@ -87,8 +87,8 @@ Most compilers implement their own version of this keyword ...
        #endif
 #endif
 
-/* MSVC does not have lrintf */
-#ifdef _MSC_VER
+/* MSVC and Borland C do not have lrintf */
+#if defined(_MSC_VER) || defined(__BORLANDC__)
 static INLINE long lrintf(float f){
        int i;