nds7.pp 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. (*---------------------------------------------------------------------------------
  2. libnds Copyright (C) 2005
  3. Michael Noland (joat)
  4. Jason Rogers (dovoto)
  5. Dave Murphy (WinterMute)
  6. This software is provided 'as-is', without any express or implied
  7. warranty. In no event will the authors be held liable for any
  8. damages arising from the use of this software.
  9. Permission is granted to anyone to use this software for any
  10. purpose, including commercial applications, and to alter it and
  11. redistribute it freely, subject to the following restrictions:
  12. 1. The origin of this software must not be misrepresented; you
  13. must not claim that you wrote the original software. If you use
  14. this software in a product, an acknowledgment in the product
  15. documentation would be appreciated but is not required.
  16. 2. Altered source versions must be plainly marked as such, and
  17. must not be misrepresented as being the original software.
  18. 3. This notice may not be removed or altered from any source
  19. distribution.
  20. ----------------------------------------------------------------------------
  21. Free Pascal porting by Francesco Lombardi.
  22. ---------------------------------------------------------------------------------*)
  23. {$IFNDEF FPC_DOTTEDUNITS}
  24. unit nds7;
  25. {$ENDIF FPC_DOTTEDUNITS}
  26. {$mode objfpc}
  27. {$apptype arm7}
  28. {$define arm7}
  29. {$J+}
  30. {$INLINE ON}
  31. {$MACRO ON}
  32. {$PACKRECORDS C}
  33. {$modeswitch ADVANCEDRECORDS}
  34. interface
  35. {$IFDEF FPC_DOTTEDUNITS}
  36. uses
  37. System.CTypes;
  38. {$ELSE FPC_DOTTEDUNITS}
  39. uses
  40. ctypes;
  41. {$ENDIF FPC_DOTTEDUNITS}
  42. {$linklib nds7}
  43. {$linklib c}
  44. {$linklib gcc}
  45. {$linklib g}
  46. {$linklib sysbase}
  47. {$define NDS_INTERFACE}
  48. {$include nds/ndsinclude.inc}
  49. {$undef NDS_INTERFACE}
  50. implementation
  51. {$define NDS_IMPLEMENTATION}
  52. {$include nds/ndsinclude.inc}
  53. {$undef NDS_IMPLEMENTATION}
  54. end.