home *** CD-ROM | disk | FTP | other *** search
/ Software Recommendations - 1998 Season 1 / DNBCD4.iso / share / DOS / ipxcopy / SRC.ZIP / SRC / CCOMMON.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-12  |  878 b   |  66 lines

  1. /*
  2.  
  3.    CCOMMON.H
  4.  
  5.    (c) 1996 Oliver Kraus
  6.  
  7.    C_DOS             MS-DOS like OS used
  8.       C_DPMI         Use DPMI Interface
  9.          C_DPMI386   Use DPMI int386 calls
  10.    C_UNIX      Unix System used
  11.  
  12. */
  13.  
  14. #ifndef _CCOMMON_H
  15. #define _CCOMMON_H
  16.  
  17. #ifdef MSDOS
  18. #ifndef C_DOS
  19. #define C_DOS
  20. #endif
  21. #endif
  22.  
  23. #ifdef UNIX
  24. #ifndef C_DOS
  25. #ifndef C_UNIX
  26. #define C_UNIX
  27. #endif
  28. #endif
  29. #endif
  30.  
  31. /* default to unix */
  32. #ifndef C_DOS
  33. #ifndef C_UNIX
  34. #define C_UNIX
  35. #endif
  36. #endif
  37.  
  38.  
  39. /* dpmi section */
  40. #ifdef C_DOS
  41. #define C_DELIMITER_CHAR '\\'
  42. #define C_DELIMITER_STR "\\"
  43.  
  44. #define C_DPMI
  45.  
  46. #ifdef __WATCOMC__
  47. #ifdef __386__
  48. #ifndef C_DPMI386
  49. #define C_DPMI386
  50. #endif
  51. #endif
  52. #endif
  53.  
  54. #endif /* C_DOS */
  55.  
  56. #ifdef C_UNIX
  57. #define C_DELIMITER_CHAR '/'
  58. #define C_DELIMITER_STR "/"
  59. #endif
  60.  
  61. #define C_MAX_PATH 2048
  62. #define C_MAX_FILE 300
  63. #define C_MAX_PATHNAME (C_MAX_PATH+C_MAX_FILE)
  64.  
  65. #endif /* _CCOMMON_H */
  66.