aboutsummaryrefslogtreecommitdiff
path: root/defines.h
diff options
context:
space:
mode:
Diffstat (limited to 'defines.h')
-rw-r--r--defines.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/defines.h b/defines.h
index 093a477..b92efa6 100644
--- a/defines.h
+++ b/defines.h
@@ -1,10 +1,11 @@
#include <m_pd.h>
#include <math.h>
-#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