aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flstdc.h
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/source/flstdc.h')
-rw-r--r--externals/grill/flext/source/flstdc.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/externals/grill/flext/source/flstdc.h b/externals/grill/flext/source/flstdc.h
index 19586a4a..92ea3fe8 100644
--- a/externals/grill/flext/source/flstdc.h
+++ b/externals/grill/flext/source/flstdc.h
@@ -18,6 +18,14 @@ WARRANTIES, see the file, "license.txt," in this distribution.
#ifndef __FLEXT_STDC_H
#define __FLEXT_STDC_H
+#if defined(_MSC_VER) && (_MSC_VER < 0x1300)
+/*
+ include math.h here - when included with PD or Max/MSP headers,
+ C linkage would be used which disturbs MSVC6
+*/
+#include <math.h>
+#endif
+
// PD stuff
#if FLEXT_SYS == FLEXT_SYS_PD