diff -r 71fc5893071c -r bce8cf41d666 hedgewars/SDLh.pas --- a/hedgewars/SDLh.pas Thu Jun 13 22:04:22 2013 +0200 +++ b/hedgewars/SDLh.pas Thu Jun 13 22:27:23 2013 +0200 @@ -54,7 +54,8 @@ {$ENDIF} {$IFDEF DARWIN} - {$IFNDEF IPHONEOS} + {$IFNDEF HWLIBRARY} + {$linklib SDLmain} {$PASCALMAINNAME SDL_main} {$linkframework Cocoa} {$linkframework SDL} @@ -76,19 +77,11 @@ SDL_ImageLibName = 'SDL_image.dll'; SDL_NetLibName = 'SDL_net.dll'; {$ELSE} - {$IFDEF DARWIN} - SDLLibName = 'SDL'; - SDL_TTFLibName = 'SDL_ttf'; - SDL_MixerLibName = 'SDL_mixer'; - SDL_ImageLibName = 'SDL_image'; - SDL_NetLibName = 'SDL_net'; - {$ELSE} - SDLLibName = 'libSDL.so'; - SDL_TTFLibName = 'libSDL_ttf.so'; - SDL_MixerLibName = 'libSDL_mixer.so'; - SDL_ImageLibName = 'libSDL_image.so'; - SDL_NetLibName = 'libSDL_net.so'; - {$ENDIF} + SDLLibName = 'libSDL'; + SDL_TTFLibName = 'libSDL_ttf'; + SDL_MixerLibName = 'libSDL_mixer'; + SDL_ImageLibName = 'libSDL_image'; + SDL_NetLibName = 'libSDL_net'; {$ENDIF} /////////////////////////////////////////////////////////////////