Fix ARM build with Visual Studio

This commit is contained in:
mayeut 2015-07-26 21:12:36 +02:00
parent 15e4168ee2
commit 45ccf501f0
1 changed files with 3 additions and 1 deletions

View File

@ -129,7 +129,7 @@ static INLINE long opj_lrintf(float f){
/* commented out line breaks many tests */ /* commented out line breaks many tests */
/* return (long)((f>0.0f) ? (f + 0.5f):(f -0.5f)); */ /* return (long)((f>0.0f) ? (f + 0.5f):(f -0.5f)); */
#else #elif defined(_M_IX86)
int i; int i;
_asm{ _asm{
fld f fld f
@ -137,6 +137,8 @@ static INLINE long opj_lrintf(float f){
}; };
return i; return i;
#else
return (long)((f>0.0f) ? (f + 0.5f) : (f - 0.5f));
#endif #endif
} }
#elif defined(__BORLANDC__) #elif defined(__BORLANDC__)