hermdef.inc 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. Free Pascal port of the Hermes C library.
  3. Copyright (C) 2001-2003 Nikolay Nikolov ([email protected])
  4. Original C version by Christian Nentwich ([email protected])
  5. This library is free software; you can redistribute it and/or
  6. modify it under the terms of the GNU Lesser General Public
  7. License as published by the Free Software Foundation; either
  8. version 2.1 of the License, or (at your option) any later version.
  9. This library is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. Lesser General Public License for more details.
  13. You should have received a copy of the GNU Lesser General Public
  14. License along with this library; if not, write to the Free Software
  15. Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  16. }
  17. {$IFDEF CPU86}
  18. {$DEFINE I386_ASSEMBLER}
  19. {$IFNDEF win32}
  20. Const
  21. ExternalAsmPrefix='_';
  22. {$ELSE win32}
  23. Const
  24. ExternalAsmPrefix='';
  25. {$ENDIF win32}
  26. {$ENDIF CPU86}
  27. {$IFDEF VER1_0}
  28. {$IFDEF ENDIAN_LITTLE}
  29. {$DEFINE FPC_LITTLE_ENDIAN}
  30. {$ENDIF ENDIAN_LITTLE}
  31. {$IFDEF ENDIAN_BIG}
  32. {$DEFINE FPC_BIG_ENDIAN}
  33. {$ENDIF ENDIAN_BIG}
  34. Type
  35. PtrInt = LongInt;
  36. PtrUInt = Cardinal;
  37. {$ENDIF VER1_0}
  38. {$IFDEF FPC_LITTLE_ENDIAN}
  39. {$IFDEF FPC_BIG_ENDIAN}
  40. {$FATAL Both FPC_LITTLE_ENDIAN and FPC_BIG_ENDIAN defined?!}
  41. {$ENDIF FPC_BIG_ENDIAN}
  42. {$ELSE FPC_LITTLE_ENDIAN}
  43. {$IFNDEF FPC_BIG_ENDIAN}
  44. {$FATAL Neither FPC_LITTLE_ENDIAN, nor FPC_BIG_ENDIAN defined?!}
  45. {$ENDIF FPC_BIG_ENDIAN}
  46. {$ENDIF FPC_LITTLE_ENDIAN}
  47. {$IFDEF FPC_LITTLE_ENDIAN}
  48. {$INFO FPC_LITTLE_ENDIAN}
  49. {$ENDIF FPC_LITTLE_ENDIAN}
  50. {$IFDEF FPC_BIG_ENDIAN}
  51. {$INFO FPC_BIG_ENDIAN}
  52. {$ENDIF FPC_BIG_ENDIAN}