DEADSOFTWARE

gui: fix build with disabled render
[d2df-sdl.git] / src / flexui / sdlcarcass.pas
index 20efb0829d2b01929287e5fadbe6ed06450c256f..20363e688fd9345414248373f62f4e806974f005 100644 (file)
 {$INCLUDE ../shared/a_modes.inc}
 unit sdlcarcass;
 
+  {$IFNDEF USE_SDL2}
+    {$FATAL SDL2 required for flexui sdlcarcass}
+  {$ENDIF}
+
 interface
 
 uses
@@ -68,12 +72,11 @@ implementation
 
 uses
   SysUtils, Classes,
-  {$INCLUDE ../nogl/noGLuses.inc}
   {$IF DEFINED(LINUX) OR DEFINED(ANDROID)}
     unixtype, linux
   {$ELSEIF DEFINED(WINDOWS)}
     Windows
-  {$ELSEIF DEFINED(HAIKU)}
+  {$ELSEIF DEFINED(HAIKU) OR DEFINED(UNIX)}
     unixtype
   {$ELSE}
     {$WARNING You suck!}