summaryrefslogtreecommitdiffstats
path: root/60xx/libsensors_iio/software/core/mpl/inv_math.h
diff options
context:
space:
mode:
Diffstat (limited to '60xx/libsensors_iio/software/core/mpl/inv_math.h')
-rw-r--r--60xx/libsensors_iio/software/core/mpl/inv_math.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/60xx/libsensors_iio/software/core/mpl/inv_math.h b/60xx/libsensors_iio/software/core/mpl/inv_math.h
new file mode 100644
index 0000000..6620bbf
--- /dev/null
+++ b/60xx/libsensors_iio/software/core/mpl/inv_math.h
@@ -0,0 +1,8 @@
+/* math.h has many functions and defines that are not consistent across
+* platforms. This address that */
+
+#ifdef _WINDOWS
+#define _USE_MATH_DEFINES
+#endif
+
+#include <math.h>