diff -r 71626318f80e -r dfaa39674e1e hedgewars/SDLh.pas --- a/hedgewars/SDLh.pas Wed Nov 06 00:59:33 2013 +0400 +++ b/hedgewars/SDLh.pas Tue Nov 05 23:33:23 2013 +0100 @@ -55,15 +55,23 @@ {$IFDEF DARWIN} {$IFNDEF HWLIBRARY} - {$linklib SDLmain} - {$PASCALMAINNAME SDL_main} - {$linkframework Cocoa} - {$linkframework SDL} - {$linkframework SDL_net} - {$linkframework SDL_image} - {$linkframework SDL_ttf} - {$linkframework SDL_mixer} - {$linkframework OpenGL} + {$IFDEF SDL2} + {$linkframework SDL2} + {$linkframework SDL2_net} + {$linkframework SDL2_image} + {$linkframework SDL2_ttf} + {$linkframework SDL2_mixer} + {$ELSE} + {$linklib SDLmain} + {$PASCALMAINNAME SDL_main} + {$linkframework Cocoa} + {$linkframework OpenGL} + {$linkframework SDL} + {$linkframework SDL_net} + {$linkframework SDL_image} + {$linkframework SDL_ttf} + {$linkframework SDL_mixer} + {$ENDIF} {$ENDIF} {$ENDIF}