home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / unzip52.zip / win32 / w32cfg.h < prev    next >
C/C++ Source or Header  |  1996-03-13  |  2KB  |  77 lines

  1. /*---------------------------------------------------------------------------
  2.     Win32 specific configuration section:
  3.   ---------------------------------------------------------------------------*/
  4.  
  5. #ifndef __w32cfg_h
  6. #define __w32cfg_h
  7.  
  8. #include <sys/types.h>        /* off_t, time_t, dev_t, ... */
  9. #include <sys/stat.h>
  10. #include <io.h>               /* read(), open(), etc. */
  11. #include <time.h>
  12. #include <memory.h>
  13. #include <direct.h>           /* mkdir() */
  14. #include <fcntl.h>
  15. #if (defined(MSC) || defined(__WATCOMC__))
  16. #  include <sys/utime.h>
  17. #else
  18. #  include <utime.h>
  19. #endif
  20. #if defined(FILEIO_C)
  21. #  include <conio.h>
  22. #  include <windows.h>
  23. #endif
  24.  
  25. #define DATE_FORMAT   DF_MDY
  26. #define lenEOL        2
  27. #define PutNativeEOL  {*q++ = native(CR); *q++ = native(LF);}
  28.  
  29. #define USE_EF_UX_TIME
  30.  
  31. /* Static variables that we have to add to struct Globals: */
  32. #define SYSTEM_SPECIFIC_GLOBALS \
  33.     int created_dir, renamed_fullpath, fnlen;\
  34.     unsigned nLabelDrive;\
  35.     char *rootpath, *buildpathHPFS, *buildpathFAT, *endHPFS, *endFAT;\
  36.     char *dirname, *wildname, matchname[FILNAMSIZ];\
  37.     int rootlen, have_dirname, dirnamelen, notfirstcall;\
  38.     zvoid *wild_dir;
  39.  
  40. /* created_dir, renamed_fullpath, fnlen, and nLabelDrive are used by   */
  41. /*    both mapname() and checkdir().                                   */
  42. /* rootlen, rootpath, buildpathHPFS, buildpathFAT, endHPFS, and endFAT */
  43. /*    are used by checkdir().                                          */
  44. /* wild_dir, dirname, wildname, matchname[], dirnamelen, have_dirname, */
  45. /*    and notfirstcall are used by do_wild().                          */
  46.  
  47. #if (defined(_MSC_VER) && !defined(MSC))
  48. #  define MSC
  49. #endif
  50.  
  51. #ifdef __WATCOMC__
  52. #  ifdef __386__
  53. #    ifndef WATCOMC_386
  54. #      define WATCOMC_386
  55. #    endif
  56. #    define __32BIT__
  57. #    undef far
  58. #    define far
  59. #    undef near
  60. #    define near
  61.  
  62. /* Get asm routines to link properly without using "__cdecl": */
  63. #    ifndef USE_ZLIB
  64. #      pragma aux crc32         "_*" parm caller [] value [eax] modify [eax]
  65. #      pragma aux get_crc_table "_*" parm caller [] value [eax] \
  66.                                       modify [eax ecx edx]
  67. #    endif /* !USE_ZLIB */
  68. #  endif /* __386__ */
  69.  
  70. #  ifndef EPIPE
  71. #    define EPIPE -1
  72. #  endif
  73. #  define PIPE_ERROR (errno == EPIPE)
  74. #endif /* __WATCOMC__ */
  75.  
  76. #endif /* !__w32cfg_h */
  77.