[src/Layout.c & Layout-test-utils.c]: Don't define fmaxf/fminf if we're building with VC12+, its already declared from then on ;
This commit is contained in:
@@ -13,12 +13,16 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#define isnan _isnan
|
#define isnan _isnan
|
||||||
|
|
||||||
|
/* define fmaxf & fminf if < VC12 */
|
||||||
|
#if _MSC_VER < 1800
|
||||||
__forceinline const float fmaxf(const float a, const float b) {
|
__forceinline const float fmaxf(const float a, const float b) {
|
||||||
return (a > b) ? a : b;
|
return (a > b) ? a : b;
|
||||||
}
|
}
|
||||||
__forceinline const float fminf(const float a, const float b) {
|
__forceinline const float fminf(const float a, const float b) {
|
||||||
return (a < b) ? a : b;
|
return (a < b) ? a : b;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/** START_GENERATED **/
|
/** START_GENERATED **/
|
||||||
|
@@ -17,10 +17,14 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include <float.h>
|
#include <float.h>
|
||||||
#define isnan _isnan
|
#define isnan _isnan
|
||||||
|
|
||||||
|
/* define fmaxf if < VC12 */
|
||||||
|
#if _MSC_VER < 1800
|
||||||
__forceinline const float fmaxf(const float a, const float b) {
|
__forceinline const float fmaxf(const float a, const float b) {
|
||||||
return (a > b) ? a : b;
|
return (a > b) ? a : b;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
bool isUndefined(float value) {
|
bool isUndefined(float value) {
|
||||||
return isnan(value);
|
return isnan(value);
|
||||||
|
Reference in New Issue
Block a user