home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 9 / IOPROG_9.ISO / soft / fppascal / common / platform.inc < prev    next >
Encoding:
Text File  |  1997-07-14  |  2.8 KB  |  114 lines

  1. {*****************************************************************************
  2.    Include file to sort out compilers/platforms/targets
  3.  
  4.    Copyright (c) 1997 Balazs Scheidler (bazsi@tas.vein.hu)
  5.  
  6.    This library is free software; you can redistribute it and/or
  7.    modify it under the terms of the GNU Library General Public
  8.    License as published by the Free Software Foundation; either
  9.    version 2 of the License, or (at your option) any later version.
  10.  
  11.  
  12.    This library is distributed in the hope that it will be useful,
  13.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.    Library General Public License for more details.
  16.  
  17.    You should have received a copy of the GNU Library General Public
  18.    License along with this library; if not, write to the Free
  19.    Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22.  *****************************************************************************
  23.  
  24.    This include file defines some conditional defines to allow us to select
  25.    the compiler/platform/target in a consequent way.
  26.  
  27.     OS_XXXX         The operating system used (XXXX may be one of:
  28.                        DOS, OS2, Linux, Windows)
  29.     PPC_XXXX        The compiler used: BP, FPK, Virtual, Speed
  30.     BIT_XX          The number of bits of the target platform: 16 or 32
  31.     PROC_XXXX       The mode of the target processor (Real or Protected)
  32.                     This shouldn't be used, except for i386 specific parts.
  33.  
  34.  *****************************************************************************
  35.  
  36.    Changelog:
  37.  
  38.      Date      Version        Who        Comments
  39.      07/02/97  0.1            Bazsi      Initial implementation
  40.  
  41.  *****************************************************************************}
  42.  
  43.  
  44.  
  45. {$DEFINE OS_DOS}
  46. {$DEFINE PPC_BP}
  47. {$DEFINE BIT_16}
  48. {$DEFINE PROC_REAL}
  49.  
  50. {$IFDEF FPK}
  51. {$UNDEF PPC_BP}
  52. {$DEFINE PPC_FPK}
  53. {$UNDEF BIT_16}
  54. {$DEFINE BIT_32}
  55. {$UNDEF PROC_Real}
  56. {$DEFINE PROC_Protected}
  57. {$ENDIF}
  58.  
  59. {$IFDEF VirtualPascal}
  60. {$UNDEF PPC_BP}
  61. {$DEFINE PPC_Virtual}
  62. {$UNDEF BIT_16}
  63. {$DEFINE BIT_32}
  64. {$UNDEF PROC_Real}
  65. {$DEFINE PROC_Protected}
  66. {$ENDIF}
  67.  
  68. {$IFDEF Speed}
  69. {$UNDEF PPC_BP}
  70. {$DEFINE PPC_Speed}
  71. {$UNDEF BIT_16}
  72. {$DEFINE BIT_32}
  73. {$UNDEF PROC_Real}
  74. {$DEFINE PROC_Protected}
  75. {$ENDIF}
  76.  
  77. {$IFDEF BPOS2}
  78. {$UNDEF OS_DOS}
  79. {$DEFINE OS_OS2}
  80. {$UNDEF PROC_Real}
  81. {$DEFINE PROC_Protected}
  82. {$ENDIF}
  83.  
  84. {$IFDEF OS2}
  85. {$UNDEF OS_DOS}
  86. {$DEFINE OS_OS2}
  87. {$ENDIF}
  88.  
  89. {$IFDEF Linux}
  90. {$UNDEF OS_DOS}
  91. {$DEFINE OS_Linux}
  92. {$ENDIF}
  93.  
  94. {$IFDEF Windows}
  95. { Keep OS_DOS defined }
  96. {$DEFINE OS_Windows}
  97. {$UNDEF PROC_Real}
  98. {$DEFINE PROC_Protected}
  99. {$ENDIF}
  100.  
  101. {$IFDEF Win32}
  102. {$UNDEF OS_DOS}
  103. {$UNDEF PROC_Real}
  104. {$DEFINE PROC_Protected}
  105. {$UNDEF BIT_16}
  106. {$DEFINE BIT_32}
  107. {$ENDIF}
  108.  
  109. {$IFDEF DPMI}
  110. {$UNDEF PROC_Real}
  111. {$DEFINE PROC_Protected}
  112. {$ENDIF}
  113.  
  114.