From a8fc8b8b7a7df2451e09c93be9a9c45b4338535b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 18 Dec 2012 06:35:49 -0500 Subject: [PATCH] Patched to compile when SDL_ASSERT_LEVEL is zero. --- include/SDL_assert.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SDL_assert.h b/include/SDL_assert.h index ab5d3a0d3..626cdf7da 100644 --- a/include/SDL_assert.h +++ b/include/SDL_assert.h @@ -91,8 +91,6 @@ disable assertions. #define SDL_disabled_assert(condition) \ do { (void) sizeof ((condition)); } while (0) -#if (SDL_ASSERT_LEVEL > 0) - typedef enum { SDL_ASSERTION_RETRY, /**< Retry the assert immediately. */ @@ -113,6 +111,8 @@ typedef struct SDL_assert_data const struct SDL_assert_data *next; } SDL_assert_data; +#if (SDL_ASSERT_LEVEL > 0) + /* Never call this directly. Use the SDL_assert* macros. */ extern DECLSPEC SDL_assert_state SDLCALL SDL_ReportAssertion(SDL_assert_data *, const char *,