home *** CD-ROM | disk | FTP | other *** search
- {*****************************************************************************
- Include file to sort out compilers/platforms/targets
-
- Copyright (c) 1997 Balazs Scheidler (bazsi@tas.vein.hu)
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this library; if not, write to the Free
- Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
-
-
- *****************************************************************************
-
- This include file defines some conditional defines to allow us to select
- the compiler/platform/target in a consequent way.
-
- OS_XXXX The operating system used (XXXX may be one of:
- DOS, OS2, Linux, Windows)
- PPC_XXXX The compiler used: BP, FPK, Virtual, Speed
- BIT_XX The number of bits of the target platform: 16 or 32
- PROC_XXXX The mode of the target processor (Real or Protected)
- This shouldn't be used, except for i386 specific parts.
-
- *****************************************************************************
-
- Changelog:
-
- Date Version Who Comments
- 07/02/97 0.1 Bazsi Initial implementation
-
- *****************************************************************************}
-
-
-
- {$DEFINE OS_DOS}
- {$DEFINE PPC_BP}
- {$DEFINE BIT_16}
- {$DEFINE PROC_REAL}
-
- {$IFDEF FPK}
- {$UNDEF PPC_BP}
- {$DEFINE PPC_FPK}
- {$UNDEF BIT_16}
- {$DEFINE BIT_32}
- {$UNDEF PROC_Real}
- {$DEFINE PROC_Protected}
- {$ENDIF}
-
- {$IFDEF VirtualPascal}
- {$UNDEF PPC_BP}
- {$DEFINE PPC_Virtual}
- {$UNDEF BIT_16}
- {$DEFINE BIT_32}
- {$UNDEF PROC_Real}
- {$DEFINE PROC_Protected}
- {$ENDIF}
-
- {$IFDEF Speed}
- {$UNDEF PPC_BP}
- {$DEFINE PPC_Speed}
- {$UNDEF BIT_16}
- {$DEFINE BIT_32}
- {$UNDEF PROC_Real}
- {$DEFINE PROC_Protected}
- {$ENDIF}
-
- {$IFDEF BPOS2}
- {$UNDEF OS_DOS}
- {$DEFINE OS_OS2}
- {$UNDEF PROC_Real}
- {$DEFINE PROC_Protected}
- {$ENDIF}
-
- {$IFDEF OS2}
- {$UNDEF OS_DOS}
- {$DEFINE OS_OS2}
- {$ENDIF}
-
- {$IFDEF Linux}
- {$UNDEF OS_DOS}
- {$DEFINE OS_Linux}
- {$ENDIF}
-
- {$IFDEF Windows}
- { Keep OS_DOS defined }
- {$DEFINE OS_Windows}
- {$UNDEF PROC_Real}
- {$DEFINE PROC_Protected}
- {$ENDIF}
-
- {$IFDEF Win32}
- {$UNDEF OS_DOS}
- {$UNDEF PROC_Real}
- {$DEFINE PROC_Protected}
- {$UNDEF BIT_16}
- {$DEFINE BIT_32}
- {$ENDIF}
-
- {$IFDEF DPMI}
- {$UNDEF PROC_Real}
- {$DEFINE PROC_Protected}
- {$ENDIF}
-
-