# HG changeset patch # User Ryan C. Gordon # Date 1263366020 0 # Node ID a9d830c059983347795faefa5a2ca51ea778b661 # Parent c5925cd419557e1d086d2342511b94d320cab90c Fixed build problems with gcc __attribute__. diff -r c5925cd41955 -r a9d830c05998 src/SDL_assert.c --- a/src/SDL_assert.c Wed Jan 13 06:47:17 2010 +0000 +++ b/src/SDL_assert.c Wed Jan 13 07:00:20 2010 +0000 @@ -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 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(). */