Fixed compiling test with older C.
authorPhilipp Wiesemann <philipp.wiesemann@arcor.de>
Tue, 10 Feb 2015 20:31:05 +0100
changeset 9337 7e5940a2cda6
parent 9336 1a1ec75b608c
child 9338 86bc1c9a090f
Fixed compiling test with older C.
test/relative_mode.markdown
--- a/test/relative_mode.markdown	Sun Feb 08 22:50:16 2015 +0100
+++ b/test/relative_mode.markdown	Tue Feb 10 20:31:05 2015 +0100
@@ -37,9 +37,11 @@
 
     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)