Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed build problems with gcc __attribute__.
  • Loading branch information
icculus committed Jan 13, 2010
1 parent 160d24a commit 4ed2911
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/SDL_assert.c
Expand Up @@ -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
Expand All @@ -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(). */
Expand Down

0 comments on commit 4ed2911

Please sign in to comment.