nlmcfg.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /*
  2. Copyright (c) 1990-2000 Info-ZIP. All rights reserved.
  3. See the accompanying file LICENSE, version 2000-Apr-09 or later
  4. (the contents of which are also included in unzip.h) for terms of use.
  5. If, for some reason, all these files are missing, the Info-ZIP license
  6. also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
  7. */
  8. #ifdef NLM
  9. # include <sys/types.h>
  10. # include <sys/stat.h>
  11. # include <fcntl.h>
  12. # include <unistd.h>
  13. # include <utime.h>
  14. # include <nwfileio.h>
  15. # define DIRENT
  16. # include <time.h>
  17. # ifndef DATE_FORMAT
  18. # define DATE_FORMAT DF_MDY
  19. # endif
  20. # define lenEOL 2
  21. # define PutNativeEOL {*q++ = native(CR); *q++ = native(LF);}
  22. # define USE_FWRITE /* write() fails to support textmode output */
  23. # if (!defined(NOTIMESTAMP) && !defined(TIMESTAMP))
  24. # define TIMESTAMP
  25. # endif
  26. # define MAIN main
  27. # define DECLARE_TIMEZONE
  28. # define SCREENWIDTH 80
  29. # define SCREENSIZE(scrrows, scrcols) screensize(scrrows, scrcols)
  30. void InitUnZipConsole OF((void));
  31. int screensize OF((int *tt_rows, int *tt_cols));
  32. #endif /* NLM */