defs: take ssize_t and off_t in the standard library

This commit is contained in:
Lephe 2021-07-02 09:52:17 +02:00
parent 545db2f9ce
commit 8713d2644f
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 4 deletions

View File

@ -13,13 +13,11 @@
#include <stdint.h>
/* For human-readable boolean types */
#include <stdbool.h>
/* Common system types: ssize_t, off_t, etc. */
#include <sys/types.h>
/* Fixed-width types for bit fields are quite meaningless */
typedef unsigned int uint;
/* Signed size_t */
typedef signed int ssize_t;
/* Offset in file (used in standard functions) */
typedef unsigned int off_t;
//---
// Structure elements