@@ -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}
{$LINKLIB openal}
@@ -35,4 +37,4 @@ const
implementation
-end.
+end.