summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b6261de)
raw | patch | inline | side by side (parent: b6261de)
author | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 31 Aug 2019 13:41:43 +0000 (16:41 +0300) | ||
committer | DeaDDooMER <deaddoomer@deadsoftware.ru> | |
Sat, 31 Aug 2019 13:41:43 +0000 (16:41 +0300) |
src/game/Doom2DF.lpr | patch | blob | history |
diff --git a/src/game/Doom2DF.lpr b/src/game/Doom2DF.lpr
index 546cabf9f423cee29481327d8b4f4fca3b5a6190..f972e59a650dd8bee91d380ec6895f26a08f16da 100644 (file)
--- a/src/game/Doom2DF.lpr
+++ b/src/game/Doom2DF.lpr
{$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