From: DeaDDooMER Date: Sat, 31 Aug 2019 13:41:43 +0000 (+0300) Subject: fix openal driver linking X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=76f1664be8570d847e2d848d79b119dec561ce61;p=d2df-sdl.git fix openal driver linking --- diff --git a/src/game/Doom2DF.lpr b/src/game/Doom2DF.lpr index 546cabf..f972e59 100644 --- a/src/game/Doom2DF.lpr +++ b/src/game/Doom2DF.lpr @@ -22,13 +22,20 @@ {$ENDIF} {$HINTS OFF} -{$IFDEF USE_SDLMIXER} - {$IFDEF USE_FMOD} - {$ERROR define only one of USE_SDLMIXER or USE_FMOD} - {$ENDIF} +{$IF DEFINED(USE_SDLMIXER)} + {$IF DEFINED(USE_FMOD) OR DEFINED(USE_OPENAL)} + {$ERROR Only one sound driver must be selected!} + {$ENDIF} +{$ELSEIF DEFINED(USE_FMOD)} + {$IF DEFINED(USE_SDLMIXER) OR DEFINED(USE_OPENAL)} + {$ERROR Only one sound driver must be selected!} + {$ENDIF} +{$ELSEIF DEFINED(USE_OPENAL)} + {$IF DEFINED(USE_SDLMIXER) OR DEFINED(USE_FMOD)} + {$ERROR Only one sound driver must be selected!} + {$ENDIF} {$ELSE} - {$UNDEF USE_SDLMIXER} - {$DEFINE USE_FMOD} + {$ERROR Sound driver not selected. Use -DUSE_SDLMIXER or -DUSE_FMOD or -DUSE_OPENAL} {$ENDIF} uses