pthreads.pp 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. {
  2. This file is part of the Free Pascal run time library.
  3. Copyright (c) 1999-2000 by Michael Van Canneyt,
  4. BSD parts (c) 2000 by Marco van de Voort
  5. members of the Free Pascal development team.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY;without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. {$IFNDEF FPC_DOTTEDUNITS}
  13. unit pthreads;
  14. {$ENDIF FPC_DOTTEDUNITS}
  15. interface
  16. {$mode objfpc}
  17. {$PACKRECORDS C}
  18. {$if defined(BSD)}
  19. {$IFDEF FPC_DOTTEDUNITS}
  20. uses System.InitC,UnixApi.Base, UnixApi.Types;
  21. {$ELSE FPC_DOTTEDUNITS}
  22. uses initc,BaseUnix, unixtype;
  23. {$ENDIF FPC_DOTTEDUNITS}
  24. {$i pthrbsd.inc}
  25. {$elseif defined(android)}
  26. {$IFDEF FPC_DOTTEDUNITS}
  27. uses System.InitC, System.CTypes, UnixApi.Types;
  28. {$ELSE FPC_DOTTEDUNITS}
  29. uses initc, ctypes, unixtype;
  30. {$ENDIF FPC_DOTTEDUNITS}
  31. {$i pthrandroid.inc}
  32. {$elseif defined(linux)}
  33. {$IFDEF FPC_DOTTEDUNITS}
  34. uses System.InitC, System.CTypes, UnixApi.Types;
  35. {$ELSE FPC_DOTTEDUNITS}
  36. uses initc, ctypes, unixtype;
  37. {$ENDIF FPC_DOTTEDUNITS}
  38. {$i pthrlinux.inc}
  39. {$elseif defined(sunos)}
  40. {$IFDEF FPC_DOTTEDUNITS}
  41. uses System.InitC, System.CTypes, UnixApi.Types;
  42. {$ELSE FPC_DOTTEDUNITS}
  43. uses initc, ctypes, unixtype;
  44. {$ENDIF FPC_DOTTEDUNITS}
  45. {$i pthrsnos.inc}
  46. {$elseif defined(beos)}
  47. {$IFDEF FPC_DOTTEDUNITS}
  48. uses System.InitC, System.CTypes, UnixApi.Base, UnixApi.Types;
  49. {$ELSE FPC_DOTTEDUNITS}
  50. uses initc, ctypes, baseunix, unixtype;
  51. {$ENDIF FPC_DOTTEDUNITS}
  52. {$ifdef haiku}
  53. {$i pthrhaiku.inc}
  54. {$else}
  55. {$i pthrbeos.inc}
  56. {$endif}
  57. {$elseif defined(aix)}
  58. {$IFDEF FPC_DOTTEDUNITS}
  59. uses System.InitC, System.CTypes, UnixApi.Base, UnixApi.Types;
  60. {$ELSE FPC_DOTTEDUNITS}
  61. uses initc, ctypes, baseunix, unixtype;
  62. {$ENDIF FPC_DOTTEDUNITS}
  63. {$i pthraix.inc}
  64. {$else}
  65. {$error operating system not detected}
  66. {$endif}
  67. implementation
  68. end.