diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-05-30 12:17:40 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-05-30 12:17:40 (GMT) |
| commit | ab82847cd604bdaff9f458321b57f7ec8aa410a0 (patch) | |
| tree | 38fbe8ae3f3ab79cc2c65f54d757b1fec7ce5552 /src/PowderToySDL.cpp | |
| parent | 86746f38b0c0f382f06eb11c59b3dc49641490aa (diff) | |
| download | powder-ab82847cd604bdaff9f458321b57f7ec8aa410a0.zip powder-ab82847cd604bdaff9f458321b57f7ec8aa410a0.tar.gz | |
Fix minor syntax error, move all OpenGL includes into a new file that can detect the OS X version.
Diffstat (limited to 'src/PowderToySDL.cpp')
| -rw-r--r-- | src/PowderToySDL.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index 8ec1abd..0229103 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -1,3 +1,4 @@ +#ifdef USE_SDL #include <time.h> #include "SDL.h" @@ -62,8 +63,8 @@ void blit(pixel * vid) SDL_UnlockSurface(sdl_scrn); SDL_UpdateRect(sdl_scrn,0,0,0,0); } -#endif } +#endif SDL_Surface * SDLOpen() { @@ -228,4 +229,7 @@ int main(int argc, char * argv[]) ui::Engine::Ref().CloseWindow(); delete gameController; delete ui::Engine::Ref().g; + return 0; } + +#endif |
