system.h 698 B

123456789101112131415161718192021222324
  1. #ifdef MSDOS
  2. #include <io.h>
  3. #endif
  4. #if defined(HAVE_STDLIB_H) || defined(MSDOS)
  5. #include <stdlib.h>
  6. #endif
  7. #if (defined(VMS) || defined(MSDOS)) && !defined(HAVE_STRING_H)
  8. #define HAVE_STRING_H 1
  9. #endif
  10. #if defined(STDC_HEADERS) || defined(HAVE_STRING_H)
  11. #include <string.h>
  12. /* An ANSI string.h and pre-ANSI memory.h might conflict. */
  13. #if !defined(STDC_HEADERS) && defined(HAVE_MEMORY_H)
  14. #include <memory.h>
  15. #endif /* not STDC_HEADERS and HAVE_MEMORY_H */
  16. #define bcopy(src, dst, num) memcpy((dst), (src), (num))
  17. #else /* not STDC_HEADERS and not HAVE_STRING_H */
  18. #include <strings.h>
  19. /* memory.h and strings.h conflict on some systems. */
  20. #endif /* not STDC_HEADERS and not HAVE_STRING_H */