home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / gnubison.zip / system.h < prev    next >
C/C++ Source or Header  |  1996-06-20  |  776b  |  26 lines

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