mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-02 10:22:46 +00:00
Add builtin roundf() for systems lacking it.
(closes issue ASTERISK-16854) Review: https://reviewboard.asterisk.org/r/2276 Reported-by: Ovidiu Sas ........ Merged revisions 379547 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 379548 from http://svn.asterisk.org/svn/asterisk/branches/11 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@379549 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -216,4 +216,12 @@ typedef unsigned long long uint64_t;
|
||||
#define MY_GLOB_FLAGS (GLOB_NOMAGIC | GLOB_BRACE)
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ROUNDF
|
||||
#ifdef HAVE_ROUND
|
||||
#define roundf(x) ((float)round(x))
|
||||
#else
|
||||
float roundf(float x);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user