Drop direct includes of size_t.h.

It's a non-standard header we inherited from BeOS. According to the
POSIX specification, size_t should be declared from including stddef.h
and/or sys/types.h, and ssize_t from sys/types.h.
This commit is contained in:
Augustin Cavalier
2026-05-11 13:26:44 -04:00
parent 29fcc40483
commit 56be32b772
3 changed files with 2 additions and 4 deletions
-1
View File
@@ -6,7 +6,6 @@
*/ */
#include <size_t.h>
#include <sys/types.h> #include <sys/types.h>
@@ -6,8 +6,7 @@
#ifndef UI_UTILS_H #ifndef UI_UTILS_H
#define UI_UTILS_H #define UI_UTILS_H
#include <size_t.h> #include <stddef.h>
#include <image.h> #include <image.h>
#include "Types.h" #include "Types.h"
@@ -49,7 +49,7 @@
#ifdef __HAIKU__ #ifdef __HAIKU__
#include <endian.h> #include <endian.h>
#include <kernel.h> #include <kernel.h>
#include <size_t.h> #include <stddef.h>
#include <stdint.h> #include <stdint.h>
uint32 calculate_crc32c(uint32 crc32c, const unsigned char *buffer, uint32 calculate_crc32c(uint32 crc32c, const unsigned char *buffer,
unsigned int length); unsigned int length);