mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
LibC: Move ssize_t from <stddef.h> to <sys/types.h>
This should fix the toolchain build, where GCC doesn't use our stddef.h Also, Dr. POSIX says ssize_t goes in <sys/types.h> anyway. :^)
This commit is contained in:
parent
27c71d2627
commit
01a085d3a6
2 changed files with 5 additions and 5 deletions
|
@ -39,9 +39,4 @@
|
|||
typedef __PTRDIFF_TYPE__ ptrdiff_t;
|
||||
typedef __SIZE_TYPE__ size_t;
|
||||
|
||||
/* There is no __SSIZE_TYPE__ but we can trick the preprocessor into defining it for us anyway! */
|
||||
#define unsigned signed
|
||||
typedef __SIZE_TYPE__ ssize_t;
|
||||
#undef unsigned
|
||||
|
||||
#endif
|
||||
|
|
|
@ -32,6 +32,11 @@
|
|||
|
||||
__BEGIN_DECLS
|
||||
|
||||
/* There is no __SSIZE_TYPE__ but we can trick the preprocessor into defining it for us anyway! */
|
||||
#define unsigned signed
|
||||
typedef __SIZE_TYPE__ ssize_t;
|
||||
#undef unsigned
|
||||
|
||||
typedef unsigned char u_char;
|
||||
typedef unsigned short u_short;
|
||||
typedef unsigned int u_int;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue