From bd61c276fa720295150a46d3e27e51f500cf7aa1 Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Tue, 10 Feb 2015 20:31:05 +0100 Subject: [PATCH] Fixed compiling test with older C. --- test/relative_mode.markdown | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/relative_mode.markdown b/test/relative_mode.markdown index 9ae88aa1c..5b2ed6185 100644 --- a/test/relative_mode.markdown +++ b/test/relative_mode.markdown @@ -37,9 +37,11 @@ Code int main(int argc, char *argv[]) { + SDL_Window *win; + SDL_Init(SDL_INIT_VIDEO); - SDL_Window *win = SDL_CreateWindow("Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 800, 600, 0); + win = SDL_CreateWindow("Test", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 800, 600, 0); SDL_SetRelativeMouseMode(SDL_TRUE); while (1)