home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / zip21.zip / amiga / amiga.h < prev    next >
C/C++ Source or Header  |  1996-04-05  |  2KB  |  55 lines

  1. /*
  2.  
  3.  Copyright (C) 1990-1996 Mark Adler, Richard B. Wales, Jean-loup Gailly,
  4.  Kai Uwe Rommel, Onno van der Linden, Igor Mandrichenko, Paul Kienitz and
  5.  John Bush.
  6.  Permission is granted to any individual or institution to use, copy, or
  7.  redistribute this software so long as all of the original files are included,
  8.  that it is not sold for profit, and that this copyright notice is retained.
  9.  
  10. */
  11.  
  12. /* amiga.h
  13.  *
  14.  * Globular definitions that affect all of AmigaDom.
  15.  *
  16.  * Originally included in unzip.h, extracted for simplicity and eeze of
  17.  * maintenance by John Bush.
  18.  *
  19.  * This version is for use with Zip.  It is not globally included, but used
  20.  * only by functions in amiga/amigazip.c.  Much material that was needed for
  21.  * UnZip is absent here.
  22.  *
  23.  */
  24.  
  25. #include <time.h>
  26. #include <fcntl.h>     /* O_BINARY for open() w/o CR/LF translation */
  27.  
  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 MODERN
  32. #  define O_BINARY 0
  33. #  include "amiga/z-stat.h"              /* substitute for <stat.h> */
  34. #  define direct dirent
  35. #endif /* AZTEC_C */
  36.  
  37.  
  38. #if defined(LATTICE) || defined(__SASC) || defined(__SASC_60)
  39. #  include <sys/types.h>         
  40. #  include <sys/stat.h>
  41. /* Is this define necessary ?? */
  42. #  define direct dirent
  43. #  include <sys/dir.h>
  44. #  include <dos.h>
  45. #  include <proto/dos.h>  /* needed? */
  46. #  define disk_not_mounted 0  
  47. #  if ( (!defined(O_BINARY)) && defined(O_RAW))
  48. #    define O_BINARY O_RAW
  49. #  endif
  50. #endif /* LATTICE */
  51.  
  52. /* Funkshine Prough Toe Taipes */
  53.  
  54. LONG FileDate (char *, time_t[]);
  55.