From 3bb47bc1f5fc048e68168db5063fdcd2177a10e7 Mon Sep 17 00:00:00 2001 From: CNLohr Date: Tue, 14 Mar 2017 20:45:17 -0400 Subject: Update with the start of things to make TCC go in Windows. --- redist/linmath.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'redist/linmath.h') diff --git a/redist/linmath.h b/redist/linmath.h index 66a38ed..4e0cb77 100644 --- a/redist/linmath.h +++ b/redist/linmath.h @@ -25,7 +25,7 @@ #define FLT_ACOS acos #define FLT_ASIN asin #define FLT_ATAN2 atan2 -#define FLT_FABS fabs +#define FLT_FABS__ fabs #else @@ -37,10 +37,15 @@ #define FLT_ACOS acosf #define FLT_ASIN asinf #define FLT_ATAN2 atan2f -#define FLT_FABS fabsf +#define FLT_FABS__ fabsf #endif +#ifdef TCC +#define FLT_FABS(x) (((x)<0)?(-(x)):(x)) +#else +#define FLT_FABS FLT_FABS__ +#endif //NOTE: Inputs may never be output with cross product. -- cgit v1.2.3