hedgewars/SDLh.pas
changeset 9224 bce8cf41d666
parent 9115 36561f3c5345
parent 8800 5e837e6d8f94
child 9236 ddd675825672
child 9311 5baf10a52f43
--- 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}
 
 /////////////////////////////////////////////////////////////////