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 */
/* return (long)((f>0.0f) ? (f + 0.5f):(f -0.5f)); */
#else
#elif defined(_M_IX86)
int i;
_asm{
fld f
@ -137,6 +137,8 @@ static INLINE long opj_lrintf(float f){
};
return i;
#else
return (long)((f>0.0f) ? (f + 0.5f) : (f - 0.5f));
#endif
}
#elif defined(__BORLANDC__)