Commit bd61c276fa720295150a46d3e27e51f500cf7aa1

Philipp Wiesemann 2015-02-10T20:31:05

Fixed compiling test with older C.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/test/relative_mode.markdown b/test/relative_mode.markdown
index 9ae88aa..5b2ed61 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)