From 7d41c2213b5070d444fa17cdb04eeb9fdc955309 Mon Sep 17 00:00:00 2001 From: Katja Date: Sun, 6 Nov 2011 15:38:24 +0000 Subject: made smlib compliant with double precision svn path=/trunk/externals/smlib/; revision=15707 --- defines.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'defines.h') diff --git a/defines.h b/defines.h index 093a477..b92efa6 100644 --- a/defines.h +++ b/defines.h @@ -1,10 +1,11 @@ #include #include -#define MAXFLOAT 1e18f; +#ifndef MAXFLOAT +#define MAXFLOAT 1e18; +#endif #define LOGTEN 2.302585092994 -/* NT and OSX don't appear to have single-precision ANSI math */ -#if defined(_WIN32) || defined(__APPLE__) +#if PD_FLOAT_PRECISION == 64 #define sinf sin #define cosf cos #define atanf atan -- cgit v1.2.1