[v2.0] Fixed problem with Borland C++ Builder (Borland C do not have lrintf). Thanks Marek Mauder for this fix.

This commit is contained in:
Francois-Olivier Devaux 2010-04-08 20:20:34 +00:00
parent f9e6b81176
commit 8a634d0fe3
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ What's New for OpenJPEG
+ : added
April 8, 2010
* [FOD] Fixed problem with Borland C++ Builder (Borland C do not have lrintf). Thanks Marek Mauder for this fix.
* [FOD] Fixed pi.c bug (issue 15 on google code). Thanks to Anton Lionel for catching this.
* [FOD] Fixed MJ2 codec bugs (issues 23-24 on google code). Thanks to Winfried for these patches.

View 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;