[trunk] Import commit 87b08a096bb8ad61f9dbe4811e208d9c9d7fe63b from ghostpdl

don't define lrintf for MSVC 2013 (fix compilation breakage)

Update issue 225
This commit is contained in:
Mathieu Malaterre 2014-02-25 14:03:30 +00:00
parent 7ce3f3c1a6
commit e260ec6e9d
1 changed files with 2 additions and 2 deletions

View File

@ -129,8 +129,8 @@ Most compilers implement their own version of this keyword ...
#endif
#endif
/* MSVC and Borland C do not have lrintf */
#if defined(_MSC_VER) || defined(__BORLANDC__)
/* MSVC before 2013 and Borland C do not have lrintf */
#if defined(_MSC_VER) && (_MSC_VER < 1800) || defined(__BORLANDC__)
static INLINE long lrintf(float f){
#ifdef _M_X64
return (long)((f>0.0f) ? (f + 0.5f):(f -0.5f));