summaryrefslogtreecommitdiff
path: root/tests/test_tables.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_tables.c')
-rw-r--r--tests/test_tables.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/test_tables.c b/tests/test_tables.c
index be2f7ae..e4b0f43 100644
--- a/tests/test_tables.c
+++ b/tests/test_tables.c
@@ -40,6 +40,9 @@
#include <amqp.h>
+#ifdef _MSC_VER
+#define _USE_MATH_DEFINES
+#endif
#include <math.h>
void die(const char *fmt, ...)
@@ -52,10 +55,6 @@ void die(const char *fmt, ...)
abort();
}
-#ifndef M_PI
-#define M_PI 3.14159265358979323846264338327
-#endif
-
static void dump_indent(int indent, FILE *out)
{
int i;