home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / cproto-3.0 / config.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-06-06  |  1.3 KB  |  75 lines

  1. /* $Id: config.h 3.6 1993/05/26 01:48:42 cthuang Exp $
  2.  *
  3.  * cproto configuration and system dependencies
  4.  */
  5.  
  6. /* Borland C++ for MS-DOS predefines __MSDOS__ */
  7. #ifdef __MSDOS__
  8. #ifndef MSDOS
  9. #define MSDOS
  10. #endif
  11. #endif
  12.  
  13. /* Borland C++ for OS/2 predefines __OS2__ */
  14. #ifdef __OS2__
  15. #ifndef OS2
  16. #define OS2
  17. #endif
  18. #endif
  19.  
  20. /* Turbo C preprocessor */
  21. #ifdef TURBO_CPP
  22. #define CPP "cpp -P-"
  23. #else
  24. #ifdef OS2
  25. #define popen _popen
  26. #define pclose _pclose
  27. #endif
  28. #endif
  29.  
  30. /* Microsoft C preprocessor */
  31. #ifdef M_I86
  32. #  if defined(M_UNIX) && defined (M_XENIX)
  33.     /* SCO Unix Microsoft C Compiler*/
  34. #   define CPP "/bin/cc -E"
  35. #else
  36. #   define CPP "cl /E /nologo"
  37. #  endif /* defined(M_UNIX) && defined (M_XENIX) */
  38. #endif /* M_I86 */
  39.  
  40. /* Default C preprocessor on UNIX systems */
  41. #ifndef MSDOS
  42. #ifndef CPP
  43. #define CPP "/lib/cpp"
  44. #endif
  45. #endif
  46.  
  47. /* maximum include file nesting */
  48. #ifndef MAX_INC_DEPTH
  49. #define MAX_INC_DEPTH 15
  50. #endif
  51.  
  52. /* maximum number of include directories */
  53. #ifndef MAX_INC_DIR
  54. #define MAX_INC_DIR 15
  55. #endif
  56.  
  57. /* maximum text buffer size */
  58. #ifndef MAX_TEXT_SIZE
  59. #define MAX_TEXT_SIZE 256
  60. #endif
  61.  
  62. #if __STDC__ || defined(MSDOS) || defined(OS2)
  63. #include <stdlib.h>
  64. #include <string.h>
  65. #else
  66. #ifdef BSD
  67. #include <strings.h>
  68. #define strchr index
  69. #define strrchr rindex
  70. #else
  71. #include <string.h>
  72. #endif
  73. /* extern char *getenv(), *malloc(), *strstr(); */
  74. #endif
  75.