summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--complex.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/complex.c b/complex.c
index 9e352a8c39..efba0b34e7 100644
--- a/complex.c
+++ b/complex.c
@@ -6,6 +6,10 @@
*/
#include "internal.h"
+#if defined _MSC_VER
+/* Microsoft Visual C does not define M_PI and others by default */
+# define _USE_MATH_DEFINES 1
+#endif
#include <math.h>
#define NDEBUG