src/SDL.c
changeset 7037 3fedf1f25b94
parent 7011 82bbfbbc720e
child 7110 2a98852fd58d
     1.1 --- a/src/SDL.c	Fri Mar 29 21:29:57 2013 -0400
     1.2 +++ b/src/SDL.c	Sun Mar 31 12:48:50 2013 -0400
     1.3 @@ -109,8 +109,7 @@
     1.4          }
     1.5          SDL_PrivateSubsystemRefCountIncr(SDL_INIT_TIMER);
     1.6  #else
     1.7 -        SDL_SetError("SDL not built with timer support");
     1.8 -        return (-1);
     1.9 +        return SDL_SetError("SDL not built with timer support");
    1.10  #endif
    1.11      }
    1.12  
    1.13 @@ -124,8 +123,7 @@
    1.14          }
    1.15          SDL_PrivateSubsystemRefCountIncr(SDL_INIT_VIDEO);
    1.16  #else
    1.17 -        SDL_SetError("SDL not built with video support");
    1.18 -        return (-1);
    1.19 +        return SDL_SetError("SDL not built with video support");
    1.20  #endif
    1.21      }
    1.22  
    1.23 @@ -139,8 +137,7 @@
    1.24          }
    1.25          SDL_PrivateSubsystemRefCountIncr(SDL_INIT_AUDIO);
    1.26  #else
    1.27 -        SDL_SetError("SDL not built with audio support");
    1.28 -        return (-1);
    1.29 +        return SDL_SetError("SDL not built with audio support");
    1.30  #endif
    1.31      }
    1.32  
    1.33 @@ -159,8 +156,7 @@
    1.34          }
    1.35          SDL_PrivateSubsystemRefCountIncr(SDL_INIT_JOYSTICK);
    1.36  #else
    1.37 -        SDL_SetError("SDL not built with joystick support");
    1.38 -        return (-1);
    1.39 +        return SDL_SetError("SDL not built with joystick support");
    1.40  #endif
    1.41      }
    1.42  
    1.43 @@ -173,8 +169,7 @@
    1.44          }
    1.45          SDL_PrivateSubsystemRefCountIncr(SDL_INIT_GAMECONTROLLER);
    1.46  #else
    1.47 -        SDL_SetError("SDL not built with joystick support");
    1.48 -        return (-1);
    1.49 +        return SDL_SetError("SDL not built with joystick support");
    1.50  #endif
    1.51      }
    1.52  
    1.53 @@ -188,8 +183,7 @@
    1.54          }
    1.55          SDL_PrivateSubsystemRefCountIncr(SDL_INIT_HAPTIC);
    1.56  #else
    1.57 -        SDL_SetError("SDL not built with haptic (force feedback) support");
    1.58 -        return (-1);
    1.59 +        return SDL_SetError("SDL not built with haptic (force feedback) support");
    1.60  #endif
    1.61      }
    1.62