diff options
Diffstat (limited to 'Libraries')
-rw-r--r-- | Libraries/LibC/stddef.h | 5 | ||||
-rw-r--r-- | Libraries/LibC/sys/types.h | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/Libraries/LibC/stddef.h b/Libraries/LibC/stddef.h index 39d865895f..4af93185f5 100644 --- a/Libraries/LibC/stddef.h +++ b/Libraries/LibC/stddef.h @@ -40,4 +40,9 @@ 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 diff --git a/Libraries/LibC/sys/types.h b/Libraries/LibC/sys/types.h index 030d36ba28..0e8bfbcf33 100644 --- a/Libraries/LibC/sys/types.h +++ b/Libraries/LibC/sys/types.h @@ -45,9 +45,6 @@ typedef int __pid_t; typedef int id_t; -typedef int __ssize_t; -#define ssize_t __ssize_t - typedef __WINT_TYPE__ wint_t; typedef uint32_t ino_t; |