diff --git a/src/shared/a_modes.inc b/src/shared/a_modes.inc
index 5fc22fa018c259b594338a0df0fa089adce3572b..3e089bd122cb6c79b650e8fe63abe4cda0acfbb2 100644 (file)
--- a/src/shared/a_modes.inc
+++ b/src/shared/a_modes.inc
{$MODESWITCH TYPEHELPERS+} // Allow the use of type helpers.
{$MODESWITCH UNICODESTRINGS-}
+{$IFDEF DARWIN}
+ {$MODESWITCH OBJECTIVEC1}
+{$ENDIF}
{$ASSERTIONS ON}
{$BITPACKING OFF}
{$WARNING Holmes in headless mode has no sense. Disabled.}
{$UNDEF ENABLE_HOLMES}
{$ENDIF}
+ {$IFDEF ENABLE_MENU}
+ {$WARNING Menu in headless mode has no sense. Disabled.}
+ {$UNDEF ENABLE_MENU}
+ {$DEFINE DISABLE_MENU}
+ {$ENDIF}
+{$ENDIF}
+
+{$IF DEFINED(ENABLE_MENU) AND DEFINED(DISABLE_MENU)}
+ {$ERROR Select ENABLE_MENU or DISABLE_MENU}
+{$ELSEIF NOT DEFINED(ENABLE_MENU) AND NOT DEFINED(DISABLE_MENU)}
+ // defaut ENABLE/DISABLE menu
+ {$IFDEF HEADLESS}
+ {$DEFINE DISABLE_MENU}
+ {$ELSE}
+ {$DEFINE ENABLE_MENU}
+ {$ENDIF}
{$ENDIF}
{$IF DEFINED(USE_SYSSTUB)}
{$IF DEFINED(USE_SYSSTUB) OR DEFINED(USE_SDL2)}
{$ERROR Only one system driver must be selected!}
{$ENDIF}
+ {$IFDEF USE_SDLMIXER}
+ {$ERROR SDL_mixer not supported with SDL 1.2.x}
+ {$ENDIF}
{$ELSEIF DEFINED(USE_SDL2)}
{$IF DEFINED(USE_SYSSTUB) OR DEFINED(USE_SDL)}
{$ERROR Only one system driver must be selected!}