From 4ed2911c6f8c68c8c821c86a2ae1c1019e8e4fb2 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 13 Jan 2010 07:00:20 +0000 Subject: [PATCH] Fixed build problems with gcc __attribute__. --- src/SDL_assert.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/SDL_assert.c b/src/SDL_assert.c index 3799e61e7..c7bc23034 100644 --- a/src/SDL_assert.c +++ b/src/SDL_assert.c @@ -31,6 +31,7 @@ #else /* fprintf, _exit(), etc. */ #include #include +#include #endif /* We can keep all triggered assertions in a singly-linked list so we can @@ -43,9 +44,13 @@ static SDL_assert_data *triggered_assertions = &assertion_list_terminator; static void debug_print(const char *fmt, ...) -//#ifdef __GNUC__ -//__attribute__((format (printf, 1, 2))) -//#endif +#ifdef __GNUC__ +__attribute__((format (printf, 1, 2))) +#endif +; + +static void +debug_print(const char *fmt, ...) { #ifdef _WINDOWS /* Format into a buffer for OutputDebugStringA(). */