- Fix for new name of SDL 2 libraries ios-revival
authorantonc27 <antonc27@mail.ru>
Sun, 09 Aug 2015 00:04:41 +0200
branchios-revival
changeset 11098 0032a00d915b
parent 11097 fd536d99a760
child 11099 c51e4c942525
- Fix for new name of SDL 2 libraries Note: Actually, seems to work correctly without it, but just to be sure
hedgewars/SDLh.pas
--- a/hedgewars/SDLh.pas	Sat Aug 08 23:01:02 2015 +0200
+++ b/hedgewars/SDLh.pas	Sun Aug 09 00:04:41 2015 +0200
@@ -63,11 +63,19 @@
     SDL_ImageLibName = 'SDL_image.dll';
     SDL_NetLibName = 'SDL_net.dll';
 {$ELSE}
-    SDLLibName = 'libSDL';
-    SDL_TTFLibName = 'libSDL_ttf';
-    SDL_MixerLibName = 'libSDL_mixer';
-    SDL_ImageLibName = 'libSDL_image';
-    SDL_NetLibName = 'libSDL_net';
+    {$IFDEF SDL2}
+        SDLLibName = 'libSDL2';
+        SDL_TTFLibName = 'libSDL2_ttf';
+        SDL_MixerLibName = 'libSDL2_mixer';
+        SDL_ImageLibName = 'libSDL2_image';
+        SDL_NetLibName = 'libSDL2_net';
+    {$ELSE}
+        SDLLibName = 'libSDL';
+        SDL_TTFLibName = 'libSDL_ttf';
+        SDL_MixerLibName = 'libSDL_mixer';
+        SDL_ImageLibName = 'libSDL_image';
+        SDL_NetLibName = 'libSDL_net';
+    {$ENDIF}
 {$ENDIF}
 
 /////////////////////////////////////////////////////////////////