From 4727b0d97f30666b15155765d602c9a2f1f5159f Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 26 Feb 2016 13:20:43 +0100 Subject: OS/2 can not support SDL2 which is needed for MAME to run (nw) --- src/osd/sdl/sdlmain.cpp | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) (limited to 'src/osd/sdl/sdlmain.cpp') diff --git a/src/osd/sdl/sdlmain.cpp b/src/osd/sdl/sdlmain.cpp index 530aa41c9d4..f9015e80552 100644 --- a/src/osd/sdl/sdlmain.cpp +++ b/src/osd/sdl/sdlmain.cpp @@ -21,7 +21,7 @@ #endif // standard includes -#if !defined(SDLMAME_WIN32) && !defined(SDLMAME_OS2) +#if !defined(SDLMAME_WIN32) #include #endif @@ -31,12 +31,6 @@ #include #endif - -#ifdef SDLMAME_OS2 -#define INCL_DOS -#include -#endif - #include "sdlinc.h" // MAME headers @@ -67,7 +61,7 @@ //============================================================ #ifndef INI_PATH -#if defined(SDLMAME_WIN32) || defined(SDLMAME_OS2) +#if defined(SDLMAME_WIN32) #define INI_PATH ".;ini" #elif defined(SDLMAME_MACOSX) #define INI_PATH "$HOME/Library/Application Support/APP_NAME;$HOME/.APP_NAME;.;ini" @@ -172,23 +166,6 @@ const options_entry sdl_options::s_option_entries[] = { NULL } }; -//============================================================ -// OS2 specific -//============================================================ - -#ifdef SDLMAME_OS2 -void MorphToPM() -{ - PPIB pib; - PTIB tib; - - DosGetInfoBlocks(&tib, &pib); - - // Change flag from VIO to PM: - if (pib->pib_ultype==2) pib->pib_ultype = 3; -} -#endif - //============================================================ // sdl_options //============================================================ @@ -231,10 +208,6 @@ int main(int argc, char *argv[]) #endif #endif -#ifdef SDLMAME_OS2 - MorphToPM(); -#endif - { sdl_options options; sdl_osd_interface osd(options); @@ -326,7 +299,6 @@ static void defines_verbose(void) MACRO_VERBOSE(SDLMAME_UNIX); MACRO_VERBOSE(SDLMAME_X11); MACRO_VERBOSE(SDLMAME_WIN32); - MACRO_VERBOSE(SDLMAME_OS2); MACRO_VERBOSE(SDLMAME_MACOSX); MACRO_VERBOSE(SDLMAME_DARWIN); MACRO_VERBOSE(SDLMAME_LINUX); -- cgit v1.2.3-70-g09d2