# HG changeset patch # User bellard # Date 1043765426 0 # Node ID 998d5035b15ba343466776020cbcc2e93ce6063f # Parent f1ac4649598f7928c9b1e3aa208e4e9afadba82e win32: rint() does not seem to be defined with mingw32-gcc 2.95 - do you have a better solution ? diff -r f1ac4649598f -r 998d5035b15b dsputil.h --- a/dsputil.h Tue Jan 28 14:37:44 2003 +0000 +++ b/dsputil.h Tue Jan 28 14:50:26 2003 +0000 @@ -331,7 +331,12 @@ /* btw, rintf() is existing on fbsd too -- alex */ static inline long int lrintf(float x) { +#ifdef CONFIG_WIN32 + /* XXX: incorrect, but make it compile */ + return (int)(x); +#else return (int)(rint(x)); +#endif } #endif