mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Move 'round()' / 'trunc()' etc so that they won't conflict with any versions already available in MSVC
This commit is contained in:
parent
4ece16f348
commit
8e2d1c7f2a
3 changed files with 63 additions and 63 deletions
|
|
@ -252,17 +252,17 @@ inline int64_t abs(int64_t val) throw()
|
|||
#endif
|
||||
|
||||
#if !defined(LIBPBD_API) || defined(PBD_IS_IN_WIN_STATIC_LIB)
|
||||
extern double round(double x);
|
||||
extern float roundf(float x);
|
||||
|
||||
// Emulate some C99 math functions which MSVC itself didn't
|
||||
// implement until later in life.
|
||||
#if defined(_MSC_VER) && (_MSC_VER < 1800)
|
||||
extern double expm1(double x);
|
||||
extern double log1p(double x);
|
||||
extern double round(double x);
|
||||
extern float roundf(float x);
|
||||
#endif
|
||||
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
||||
extern double log2 (double x);
|
||||
extern double trunc(double x);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue