Fixed build problems with gcc __attribute__.
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404399
This commit is contained in:
parent
a8a1ac9acd
commit
0dcf321953
1 changed files with 8 additions and 3 deletions
|
@ -31,6 +31,7 @@
|
||||||
#else /* fprintf, _exit(), etc. */
|
#else /* fprintf, _exit(), etc. */
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* We can keep all triggered assertions in a singly-linked list so we can
|
/* 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
|
static void
|
||||||
debug_print(const char *fmt, ...)
|
debug_print(const char *fmt, ...)
|
||||||
//#ifdef __GNUC__
|
#ifdef __GNUC__
|
||||||
//__attribute__((format (printf, 1, 2)))
|
__attribute__((format (printf, 1, 2)))
|
||||||
//#endif
|
#endif
|
||||||
|
;
|
||||||
|
|
||||||
|
static void
|
||||||
|
debug_print(const char *fmt, ...)
|
||||||
{
|
{
|
||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
/* Format into a buffer for OutputDebugStringA(). */
|
/* Format into a buffer for OutputDebugStringA(). */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue