aboutsummaryrefslogtreecommitdiff
path: root/modules++/DSPI.h
diff options
context:
space:
mode:
Diffstat (limited to 'modules++/DSPI.h')
-rw-r--r--modules++/DSPI.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules++/DSPI.h b/modules++/DSPI.h
index 640060f..4bbfa82 100644
--- a/modules++/DSPI.h
+++ b/modules++/DSPI.h
@@ -13,6 +13,10 @@
#if defined(__i386__) || defined(__x86_64__) // Type punning code:
+#ifndef PD_FLOAT_PRECISION
+#define PD_FLOAT_PRECISION 32
+#endif
+
#if PD_FLOAT_PRECISION == 32
typedef union