mirror of
https://github.com/cookiengineer/audacity
synced 2025-11-27 07:40:10 +01:00
libsndfile: Update for VS2015+
This commit is contained in:
@@ -14,61 +14,10 @@
|
|||||||
#define ssize_t SSIZE_T
|
#define ssize_t SSIZE_T
|
||||||
#define __func__ __FUNCTION__
|
#define __func__ __FUNCTION__
|
||||||
|
|
||||||
/* Win32 doesn't seem to have these functions.
|
#if _MSC_VER < 1900
|
||||||
** 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
|
|
||||||
|
|
||||||
/* Nor does it have the snprintf function */
|
/* Nor does it have the snprintf function */
|
||||||
#define snprintf _snprintf
|
#define snprintf _snprintf
|
||||||
|
#endif
|
||||||
|
|
||||||
/* The above was added to provide the necessary support on Windows */
|
/* The above was added to provide the necessary support on Windows */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user