mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2024-12-29 13:03:36 +01:00
defs: take ssize_t and off_t in the standard library
This commit is contained in:
parent
545db2f9ce
commit
8713d2644f
1 changed files with 2 additions and 4 deletions
|
@ -13,13 +13,11 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
/* For human-readable boolean types */
|
/* For human-readable boolean types */
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
/* Common system types: ssize_t, off_t, etc. */
|
||||||
|
#include <sys/types.h>
|
||||||
|
|
||||||
/* Fixed-width types for bit fields are quite meaningless */
|
/* Fixed-width types for bit fields are quite meaningless */
|
||||||
typedef unsigned int uint;
|
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
|
// Structure elements
|
||||||
|
|
Loading…
Reference in a new issue