home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 404_02 / bisnp / system.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-28  |  863 b   |  35 lines

  1. #ifdef MSDOS
  2. #ifndef _MSDOS
  3. #define _MSDOS
  4. #endif
  5. #endif
  6.  
  7. #if defined(HAVE_STDLIB_H) || defined(_MSDOS)
  8. #include <stdlib.h>
  9. #endif
  10.  
  11. #if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H)
  12. #define HAVE_STRING_H 1
  13. #endif
  14.  
  15. #ifdef _MSDOS
  16. #include <io.h>
  17.  
  18. #define strlwr _strlwr
  19. #define strupr _strupr
  20. #define unlink _unlink
  21. #define mktemp _mktemp
  22. #endif /* MSDOS */
  23.  
  24. #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
  25. #include <string.h>
  26. /* An ANSI string.h and pre-ANSI memory.h might conflict.  */
  27. #if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
  28. #include <memory.h>
  29. #endif /* not STDC_HEADERS and HAVE_MEMORY_H */
  30. #define bcopy(src, dst, num) memcpy((dst), (src), (num))
  31. #else /* not STDC_HEADERS and not HAVE_STRING_H */
  32. #include <strings.h>
  33. /* memory.h and strings.h conflict on some systems.  */
  34. #endif /* not STDC_HEADERS and not HAVE_STRING_H */
  35.