OS2 forces usage

This commit is contained in:
mysticbbs 2012-03-01 18:19:04 -05:00
parent 8178a13f71
commit 51a64dd309
2 changed files with 44 additions and 30 deletions

View File

@ -4,26 +4,35 @@ Unit m_Input;
Interface Interface
{$IFDEF WINDOWS} {.$DEFINE USE_CRT_INPUT}
{$IFDEF OS2}
{$DEFINE USE_CRT_INPUT}
{$ENDIF}
{$IFDEF USE_CRT_INPUT}
{$WARNING ***** GENERIC CRT INPUT IS ENABLED *****}
Uses Uses
m_Input_Windows; m_Input_CRT;
Type Type
TInput = Class(TInputWindows); TInput = Class(TInputCRT);
{$ENDIF} {$ELSE}
{$IFDEF WINDOWS}
Uses m_Input_Windows;
Type TInput = Class(TInputWindows);
{$ENDIF}
{$IFDEF LINUX} {$IFDEF LINUX}
Uses m_Input_Linux; Uses m_Input_Linux;
Type TInput = Class(TInputLinux);
{$ENDIF}
Type {$IFDEF DARWIN}
TInput = Class(TInputLinux); Uses m_Input_Darwin;
{$ENDIF} Type TInput = Class(TInputDarwin);
{$ENDIF}
{$IFDEF DARWIN}
Uses m_Input_Darwin;
Type
TInput = Class(TInputDarwin);
{$ENDIF} {$ENDIF}
Const Const

View File

@ -4,26 +4,31 @@ Unit m_Output;
Interface Interface
{$IFDEF WINDOWS} {.$DEFINE USE_CRT_OUTPUT}
Uses
m_Output_Windows;
Type {$IFDEF OS2}
TOutput = Class(TOutputWindows); {$DEFINE USE_CRT_INPUT}
{$ENDIF} {$ENDIF}
{$IFDEF LINUX} {$IFDEF USE_CRT_OUTPUT}
Uses m_Output_Linux; {$WARNING ***** GENERIC CRT OUTPUT IS ENABLED *****}
Uses m_Output_CRT;
Type TOutput = Class(TOutputCRT);
{$ELSE}
{$IFDEF WINDOWS}
Uses m_Output_Windows;
Type TOutput = Class(TOutputWindows);
{$ENDIF}
Type {$IFDEF LINUX}
TOutput = Class(TOutputLinux); Uses m_Output_Linux;
{$ENDIF} Type TOutput = Class(TOutputLinux);
{$ENDIF}
{$IFDEF DARWIN} {$IFDEF DARWIN}
Uses m_Output_Darwin; Uses m_Output_Darwin;
Type TOutput = Class(TOutputDarwin);
Type {$ENDIF}
TOutput = Class(TOutputDarwin);
{$ENDIF} {$ENDIF}
Implementation Implementation