mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-15 07:40:23 +02:00
libsndfile: Update for VS2015+
This commit is contained in:
parent
2ebb341490
commit
ee5609b8ee
@ -14,61 +14,10 @@
|
||||
#define ssize_t SSIZE_T
|
||||
#define __func__ __FUNCTION__
|
||||
|
||||
/* Win32 doesn't seem to have these functions.
|
||||
** Therefore implement inline versions of these functions here.
|
||||
*/
|
||||
#if (_MSC_VER == 1500)
|
||||
__inline long int
|
||||
lrint (double flt)
|
||||
{ int intgr;
|
||||
|
||||
_asm
|
||||
{ fld flt
|
||||
fistp intgr
|
||||
} ;
|
||||
|
||||
return intgr ;
|
||||
}
|
||||
|
||||
__inline long int
|
||||
lrintf (float flt)
|
||||
{ int intgr;
|
||||
|
||||
_asm
|
||||
{ fld flt
|
||||
fistp intgr
|
||||
} ;
|
||||
|
||||
return intgr ;
|
||||
}
|
||||
|
||||
__inline long long int
|
||||
llrint (double flt)
|
||||
{ long long int intgr;
|
||||
|
||||
_asm
|
||||
{ fld flt
|
||||
fistp intgr
|
||||
} ;
|
||||
|
||||
return intgr ;
|
||||
}
|
||||
|
||||
__inline long long int
|
||||
llrintf (float flt)
|
||||
{ long long int intgr;
|
||||
|
||||
_asm
|
||||
{ fld flt
|
||||
fistp intgr
|
||||
} ;
|
||||
|
||||
return intgr ;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if _MSC_VER < 1900
|
||||
/* Nor does it have the snprintf function */
|
||||
#define snprintf _snprintf
|
||||
#endif
|
||||
|
||||
/* The above was added to provide the necessary support on Windows */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user