mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix issue 105 - lost fixes for some version of Visual Studio (#108)
This commit is contained in:
committed by
Kévin Petit
parent
5a0ef9fef7
commit
f2d339b8d2
@@ -188,6 +188,10 @@ long double remquol( long double x, long double y, int *quo);
|
||||
|
||||
long double scalblnl(long double x, long n);
|
||||
|
||||
// snprintf added in _MSC_VER == 1900 (Visual Studio 2015)
|
||||
#if defined( _MSC_VER ) && _MSC_VER < 1900
|
||||
#define snprintf sprintf_s
|
||||
#endif
|
||||
float hypotf(float x, float y);
|
||||
long double hypotl(long double x, long double y) ;
|
||||
double lgamma(double x);
|
||||
@@ -215,7 +219,10 @@ long double roundl(long double x);
|
||||
int cf_signbit(double x);
|
||||
int cf_signbitf(float x);
|
||||
|
||||
// Added in _MSC_VER == 1800 (Visual Studio 2013)
|
||||
#if defined( _MSC_VER ) && _MSC_VER < 1800
|
||||
static int signbit(double x) { return cf_signbit(x); }
|
||||
#endif
|
||||
static int signbitf(float x) { return cf_signbitf(x); }
|
||||
|
||||
long int lrint (double flt);
|
||||
@@ -249,10 +256,6 @@ int32_t float2int (float fx);
|
||||
// stdio.h
|
||||
//
|
||||
|
||||
#if defined( _MSC_VER )
|
||||
#define snprintf sprintf_s
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
//
|
||||
|
||||
@@ -565,7 +565,7 @@ long int lrintf (float x)
|
||||
// fenv functions
|
||||
//
|
||||
///////////////////////////////////////////////////////////////////
|
||||
|
||||
#if _MSC_VER < 1900
|
||||
int fetestexcept(int excepts)
|
||||
{
|
||||
unsigned int status = _statusfp();
|
||||
@@ -583,6 +583,7 @@ int feclearexcept(int excepts)
|
||||
_clearfp();
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __INTEL_COMPILER
|
||||
|
||||
|
||||
Reference in New Issue
Block a user