]> begriffs open source - libnonstd/blob - include/internal/ssize_posix.h
Test the types with printf
[libnonstd] / include / internal / ssize_posix.h
1 #ifndef NONSTD_SSIZE_H
2 #define NONSTD_SSIZE_H
3
4 #define _POSIX_C_SOURCE 200112L
5
6 // get ssize_t from POSIX
7 #include <sys/types.h>
8
9 #include <limits.h>
10
11 // TODO: the %zd specifier may not be available outside gcc and clang, and
12 // people recommend using %jd and casting argument to intmax_t for greatest
13 // portability.
14 #define PRIdSSIZE "zd"
15
16 #undef _POSIX_C_SOURCE
17
18 #endif