summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMichael Steinert <mike.steinert@gmail.com>2012-05-16 12:13:31 -0600
committerMichael Steinert <mike.steinert@gmail.com>2012-05-17 11:44:46 -0600
commitc921feb829e79a33938300350e61e3c3fb217968 (patch)
treeb2054ac86a99fc4a52ded75826aad86e2561781b /tests
parent162fc19f4d896c3db862f1da303823dcbe9780ec (diff)
downloadrabbitmq-c-github-ask-c921feb829e79a33938300350e61e3c3fb217968.tar.gz
Set default visibility to hidden & enable a couple more warnings
Enable the following GCC options: 1. -Wstrict-prototypes 2. -Wcast-align 3. -fno-common 4. -fvisibility=hidden This commit also includes some general cleanup of header files (mostly for readability). Signed-off-by: Michael Steinert <mike.steinert@gmail.com>
Diffstat (limited to 'tests')
-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;