From 31bf7b9f1d51339a1a1a0a093c0e6da2052384a3 Mon Sep 17 00:00:00 2001
From: tobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>
Date: Wed, 7 May 2008 12:24:18 +0000
Subject: SDL-patches for MacOSX build added. Taken from the freepascal
 repository.

git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1065 b956fd51-792f-4845-bead-9b4dfca2ff2c
---
 Game/Code/lib/JEDI-SDL/SDL/Pas/sdl.pas      | 4 ++++
 Game/Code/lib/JEDI-SDL/SDL/Pas/sdlutils.pas | 2 ++
 2 files changed, 6 insertions(+)

(limited to 'Game')

diff --git a/Game/Code/lib/JEDI-SDL/SDL/Pas/sdl.pas b/Game/Code/lib/JEDI-SDL/SDL/Pas/sdl.pas
index 2eede417..0402107e 100644
--- a/Game/Code/lib/JEDI-SDL/SDL/Pas/sdl.pas
+++ b/Game/Code/lib/JEDI-SDL/SDL/Pas/sdl.pas
@@ -369,6 +369,10 @@ const
 {$IFDEF UNIX}
 {$IFDEF DARWIN}
   SDLLibName = 'libSDL-1.2.0.dylib';
+  {$linklib libSDL-1.2.0}
+  {$linklib SDLmain}
+  {$linkframework Cocoa}
+  {$PASCALMAINNAME SDL_main}
 {$ELSE}
   {$IFDEF FPC}
   SDLLibName = 'libSDL.so';
diff --git a/Game/Code/lib/JEDI-SDL/SDL/Pas/sdlutils.pas b/Game/Code/lib/JEDI-SDL/SDL/Pas/sdlutils.pas
index 704ad3cb..7fbed878 100644
--- a/Game/Code/lib/JEDI-SDL/SDL/Pas/sdlutils.pas
+++ b/Game/Code/lib/JEDI-SDL/SDL/Pas/sdlutils.pas
@@ -132,7 +132,9 @@ interface
 uses
 {$IFDEF UNIX}
   Types,
+{$IFNDEF DARWIN}
   Xlib,
+{$ENDIF}
 {$ENDIF}
   SysUtils,
   sdl;
-- 
cgit v1.2.3