system.h 719 B

1234567891011121314151617181920212223242526
  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. #ifndef bcopy
  17. #define bcopy(src, dst, num) memcpy((dst), (src), (num))
  18. #endif
  19. #else /* not STDC_HEADERS and not HAVE_STRING_H */
  20. #include <strings.h>
  21. /* memory.h and strings.h conflict on some systems. */
  22. #endif /* not STDC_HEADERS and not HAVE_STRING_H */