system.h 863 B

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