Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed build problems with gcc __attribute__.

  • Loading branch information
icculus committed Jan 13, 2010
1 parent 160d24a commit 4ed2911c6f8c68c8c821c86a2ae1c1019e8e4fb2
Showing with 8 additions and 3 deletions.
  1. +8 −3 src/SDL_assert.c
@@ -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(). */

0 comments on commit 4ed2911

Please sign in to comment.