amiga.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /*
  2. Copyright (c) 1990-1999 Info-ZIP. All rights reserved.
  3. See the accompanying file LICENSE, version 1999-Oct-05 or later
  4. (the contents of which are also included in zip.h) for terms of use.
  5. If, for some reason, both of these files are missing, the Info-ZIP license
  6. also may be found at: ftp://ftp.cdrom.com/pub/infozip/license.html
  7. */
  8. #ifndef __amiga_amiga_h
  9. #define __amiga_amiga_h
  10. /* amiga.h
  11. *
  12. * Globular definitions that affect all of AmigaDom.
  13. *
  14. * Originally included in unzip.h, extracted for simplicity and eeze of
  15. * maintenance by John Bush.
  16. *
  17. * This version is for use with Zip. It is not globally included, but used
  18. * only by functions in amiga/amigazip.c. Much material that was needed for
  19. * UnZip is absent here.
  20. *
  21. */
  22. #include <fcntl.h> /* O_BINARY for open() w/o CR/LF translation */
  23. #include "amiga/z-stat.h" /* substitute for <stat.h> and <dire(c|n)t.h> */
  24. #define direct dirent
  25. #ifndef MODERN
  26. # define MODERN
  27. #endif
  28. #ifdef AZTEC_C /* Manx Aztec C, 5.0 or newer only */
  29. # include <clib/dos_protos.h>
  30. # include <pragmas/dos_lib.h> /* do inline dos.library calls */
  31. # define O_BINARY 0
  32. #endif /* AZTEC_C */
  33. #ifdef __SASC
  34. # include <dirent.h>
  35. # include <dos.h>
  36. # define disk_not_mounted 0
  37. # if ( (!defined(O_BINARY)) && defined(O_RAW))
  38. # define O_BINARY O_RAW
  39. # endif
  40. #endif /* SASC */
  41. /* Funkshine Prough Toe Taipes */
  42. LONG FileDate (char *, time_t[]);
  43. #endif /* __amiga_amiga_h */