rtlibc.h 654 B

1234567891011121314151617181920212223242526272829303132
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017-01-21 Bernard the first version
  9. */
  10. #ifndef RTLIBC_H__
  11. #define RTLIBC_H__
  12. /* definitions for libc if toolchain has no these definitions */
  13. #include "libc/libc_stat.h"
  14. #include "libc/libc_fcntl.h"
  15. #include "libc/libc_dirent.h"
  16. #ifndef RT_USING_LIBC
  17. #if defined(__ARMCC_VERSION) || defined(__IAR_SYSTEMS_ICC__)
  18. typedef signed long off_t;
  19. typedef int mode_t;
  20. #endif
  21. #endif
  22. #if defined(__MINGW32__) || defined(_WIN32)
  23. typedef signed long off_t;
  24. typedef int mode_t;
  25. #endif
  26. #endif