# HG changeset patch # User mru # Date 1272040090 0 # Node ID 4ce17228fc5eb0db235e54c850e1ea7483b8057e # Parent 77c445d286118b61634279c83d90ab2e65ecec03 Workaround for missing llrintf() diff -r 77c445d28611 -r 4ce17228fc5e libm.h --- a/libm.h Fri Apr 23 13:15:11 2010 +0000 +++ b/libm.h Fri Apr 23 16:28:10 2010 +0000 @@ -43,6 +43,11 @@ #define llrint(x) ((long long)rint(x)) #endif /* HAVE_LLRINT */ +#if !HAVE_LLRINTF +#undef llrintf +#define llrintf(x) ((long long)rint(x)) +#endif /* HAVE_LLRINT */ + #if !HAVE_LOG2 #undef log2 #define log2(x) (log(x) * 1.44269504088896340736)