Browse Source

* use the framework version of OpenAL for Mac OS X (based on patch by
Dmitry Boyarintsev, mantis #16961)

git-svn-id: trunk@15611 -

Jonas Maebe 15 years ago
parent
commit
66b29841dd
1 changed files with 4 additions and 2 deletions
  1. 4 2
      packages/openal/src/openal.pas

+ 4 - 2
packages/openal/src/openal.pas

@@ -16,7 +16,7 @@ uses
   {$DEFINE DYNLINK}
 {$ENDIF}
 
-{$IFDEF DYNLINK}
+{$IF Defined(DYNLINK)}
 const
 {$IF Defined(WINDOWS)}
   openallib = 'openal32.dll';
@@ -25,6 +25,8 @@ const
 {$ELSE}
   {$MESSAGE ERROR 'DYNLINK not supported'}
 {$IFEND}
+{$ELSEIF Defined(Darwin)}
+{$linkframework OpenAL}
 {$ELSE}
   {$LINKLIB openal}
 {$ENDIF}
@@ -35,4 +37,4 @@ const
 
 implementation
 
-end.
+end.