mirror of
https://github.com/yawut/SDL.git
synced 2026-04-19 23:27:32 -05:00
Fixed build problems with gcc __attribute__.
This commit is contained in:
parent
5f76c6b2d5
commit
bb12640ed4
|
|
@ -31,6 +31,7 @@
|
|||
#else /* fprintf, _exit(), etc. */
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#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(). */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user