From 8dc13b99b51555be6fa16d271ddb02d995b46d96 Mon Sep 17 00:00:00 2001 From: tobigun Date: Wed, 10 Sep 2008 06:24:16 +0000 Subject: FreeBSD compatibility fixes: - {$IF Defined(Linux)} -> {$IF Defined(Linux) or Defined(BSD)} or {$IF Defined(UNIX)} - config-freebsd.inc added git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1357 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/lib/portaudio/portaudio.pas | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'src/lib/portaudio') diff --git a/src/lib/portaudio/portaudio.pas b/src/lib/portaudio/portaudio.pas index f8c08bfd..a0286b48 100644 --- a/src/lib/portaudio/portaudio.pas +++ b/src/lib/portaudio/portaudio.pas @@ -57,17 +57,15 @@ uses ctypes; const -{$IFDEF MSWINDOWS} +{$IF Defined(MSWINDOWS)} LibName = 'portaudio_x86.dll'; -{$ENDIF} -{$IFDEF LINUX} - LibName = 'libportaudio.so'; -{$ENDIF} -{$IFDEF DARWIN} -// this is for portaudio version 19 +{$ELSEIF Defined(DARWIN)} + // this is for portaudio version 19 LibName = 'libportaudio.2.dylib'; {$LINKLIB libportaudio.2} -{$ENDIF} +{$ELSEIF Defined(UNIX)} + LibName = 'libportaudio.so'; +{$IFEND} {** Retrieve the release number of the currently running PortAudio build, eg 1900. -- cgit v1.2.3