config.h 837 B

12345678910111213141516171819202122232425262728
  1. #ifndef __SYS_CONFIG_H__
  2. #define __SYS_CONFIG_H__
  3. #include <machine/ieeefp.h> /* floating point macros */
  4. #include <sys/features.h> /* POSIX defs */
  5. #ifndef __EXPORT
  6. #define __EXPORT
  7. #endif
  8. #ifndef __IMPORT
  9. #define __IMPORT
  10. #endif
  11. /* Define return type of read/write routines. In POSIX, the return type
  12. for read()/write() is "ssize_t" but legacy newlib code has been using
  13. "int" for some time. If not specified, "int" is defaulted. */
  14. #ifndef _READ_WRITE_RETURN_TYPE
  15. #define _READ_WRITE_RETURN_TYPE int
  16. #endif
  17. /* Define `count' parameter of read/write routines. In POSIX, the `count'
  18. parameter is "size_t" but legacy newlib code has been using "int" for some
  19. time. If not specified, "int" is defaulted. */
  20. #ifndef _READ_WRITE_BUFSIZE_TYPE
  21. #define _READ_WRITE_BUFSIZE_TYPE int
  22. #endif
  23. #endif /* __SYS_CONFIG_H__ */