--- a/hedgewars/SDLh.pas Tue Mar 19 09:53:12 2013 +0100
+++ b/hedgewars/SDLh.pas Tue Mar 19 10:34:46 2013 +0100
@@ -58,7 +58,8 @@
{$ENDIF}
{$IFDEF DARWIN}
- {$IFNDEF IPHONEOS}
+ {$IFNDEF HWLIBRARY}
+ {$linklib SDLmain}
{$PASCALMAINNAME SDL_main}
{$linkframework Cocoa}
{$linkframework SDL}