gdk2x.pas 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. *****************************************************************************
  3. * *
  4. * See the file COPYING.modifiedLGPL, included in this distribution, *
  5. * for details about the copyright. *
  6. * *
  7. * This program is distributed in the hope that it will be useful, *
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of *
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
  10. * *
  11. *****************************************************************************
  12. Author: Mattias Gaertner
  13. }
  14. unit gdk2x;
  15. {$IFDEF FPC}
  16. {$mode objfpc}
  17. {$ENDIF}
  18. {$IFDEF VER140}
  19. {$DEFINE KYLIX}
  20. {$ENDIF}
  21. interface
  22. uses
  23. Classes, SysUtils, Unix, BaseUnix, glib2, gdk2, XLib, X, XRender;
  24. {$ifdef FREEBSD}
  25. {$linklib pthread}
  26. {$endif}
  27. {$IFNDEF KYLIX}
  28. {$PACKRECORDS C}
  29. {$ELSE}
  30. {$ALIGN 4}
  31. {$WEAKPACKAGEUNIT}
  32. {$WARNINGS OFF}
  33. {$ENDIF}
  34. {$DEFINE read_forward_definitions}
  35. type
  36. {$I include/gdk2x11includes.inc}
  37. {$UNDEF read_forward_definitions}
  38. {$DEFINE read_interface_rest}
  39. {$I include/gdk2x11includes.inc}
  40. {$UNDEF read_interface_rest}
  41. implementation
  42. {*****************************************************************************
  43. * macro functions
  44. *
  45. *****************************************************************************}
  46. // call implementation parts of header files
  47. {$DEFINE read_implementation}
  48. {$I include/gdk2x11includes.inc}
  49. {$UNDEF read_implementation}
  50. end.