From c921feb829e79a33938300350e61e3c3fb217968 Mon Sep 17 00:00:00 2001 From: Michael Steinert Date: Wed, 16 May 2012 12:13:31 -0600 Subject: 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 --- tests/test_tables.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'tests') 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 +#ifdef _MSC_VER +#define _USE_MATH_DEFINES +#endif #include 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; -- cgit v1.2.1