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.
- ASM_XXXX This is the assembler type: BP, ISO-ANSI, FPK
-
- *****************************************************************************
-
- Changelog:
-
- Date Version Who Comments
- 02 Jul 97 0.1 Bazsi Initial implementation
- 28 Aug 97 0.2 LdeB Fixed OS2 platform sort out
- 29 Aug 97 0.3 LdeB Added assembler type change
- 29 Aug 97 0.4 LdeB OS_DOS removed from Windows
- *****************************************************************************
-
- This is how the IFDEF and UNDEF statements below should translate.
-
-
- POSSIBLE POSSIBLE POSSIBLE
- PLATFORM DEFINED BIT SIZE COMPILERS ASSEMBLERS
- -------- ------- -------- --------- ----------
-
- DOS OS_DOS BIT_16 PPC_BP ASM_BP
- PROC_Real BIT_32 PPC_FPK ASM_FPK
-
- DPMI OS_DOS BIT_16 PPC_BP ASM_BP
- PROC_Protected
-
- LINUX OS_LINUX BIT_32 PPC_FPK ASM_FPK
- PROC_Protected
-
- WINDOWS OS_WINDOWS BIT_16 PPC_BP ASM_BP
- PROC_Protected
-
- WIN32 OS_WIN32 BIT_32 PPC_FPK ASM_FPK
- PROC_Protected
-
- OS2 OS_OS2 BIT_16 PPC_BPOS2 ASM_BP
- PROC_Protected BIT_32 PPC_FPK ASM_FPK
- PPC_Virtual
- PPC_Speed
-
- *****************************************************************************}
-
- {$DEFINE OS_DOS}
- {$DEFINE PROC_Real}
- {$DEFINE BIT_16}
- {$DEFINE PPC_BP}
- {$DEFINE ASM_BP}
-
- {$IFDEF DPMI}
- {$UNDEF PROC_Real}
- {$DEFINE PROC_Protected}
- {$ENDIF}
-
- {$IFDEF FPK}
- {$UNDEF PROC_Real}
- {$DEFINE PROC_Protected}
- {$UNDEF BIT_16}
- {$DEFINE BIT_32}
- {$UNDEF PPC_BP}
- {$DEFINE PPC_FPK}
- {$UNDEF ASM_BP}
- {$DEFINE ASM_FPK}
- {$ENDIF}
-
- {$IFDEF LINUX}
- {$UNDEF OS_DOS}
- {$DEFINE OS_LINUX}
- {$ENDIF}
-
- {$IFDEF WINDOWS}
- {$UNDEF OS_DOS}
- {$DEFINE OS_WINDOWS}
- {$UNDEF PROC_Real}
- {$DEFINE PROC_Protected}
- {$ENDIF}
-
- {$IFDEF WIN32}
- {$UNDEF OS_DOS}
- {$DEFINE OS_WIN32}
- {$UNDEF PROC_Real}
- {$DEFINE PROC_Protected}
- {$UNDEF BIT_16}
- {$DEFINE BIT_32}
- {$ENDIF}
-
- {$IFDEF OS2}
- {$UNDEF OS_DOS}
- {$DEFINE OS_OS2}
- {$UNDEF PROC_Real}
- {$DEFINE PROC_Protected}
- {$UNDEF PPC_BP}
- {$DEFINE PPC_BPOS2}
- {$ENDIF}
-
- {$IFDEF VirtualPascal}
- {$UNDEF BIT_16}
- {$DEFINE BIT_32}
- {$UNDEF PPC_BPOS2}
- {$DEFINE PPC_Virtual}
- {$ENDIF}
-
- {$IFDEF Speed}
- {$UNDEF BIT_16}
- {$DEFINE BIT_32}
- {$UNDEF PPC_BPOS2}
- {$DEFINE PPC_Speed}
- {$ENDIF}
-
-
-
-
-
-
-
-
-