mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 17:18:24 +00:00
[libc]fix size_t ssize_t
This commit is contained in:
@@ -8,10 +8,17 @@
|
||||
*/
|
||||
#ifndef __TYPES_H__
|
||||
#define __TYPES_H__
|
||||
#include <rtconfig.h>
|
||||
|
||||
typedef long off_t;
|
||||
typedef unsigned long size_t;
|
||||
typedef signed long ssize_t; /* Used for a count of bytes or an error indication. */
|
||||
|
||||
#ifndef ARCH_CPU_64BIT
|
||||
typedef unsigned int size_t;
|
||||
typedef signed int ssize_t; /* Used for a count of bytes or an error indication. */
|
||||
#else
|
||||
typedef long unsigned int size_t;
|
||||
typedef long signed int ssize_t; /* Used for a count of bytes or an error indication. */
|
||||
#endif
|
||||
|
||||
typedef unsigned char u_char;
|
||||
typedef unsigned short u_short;
|
||||
|
||||
Reference in New Issue
Block a user