#ifndef NONSTD_SSIZE_H #define NONSTD_SSIZE_H #define _POSIX_C_SOURCE 200112L // get ssize_t from POSIX #include // TODO: the %zd specifier may not be available outside gcc and clang, and // people recommend using %jd and casting argument to intmax_t for greatest // portability. #define PRIdSSIZE "zd" // Include the following for SSIZE_MAX. // // Caution: our internal/ssize.h header ought to be included before limits.h // in integral.h or else the include guard in limits.h might stop it from // expanding here in the presence of _POSIX_C_SOURCE. #include #undef _POSIX_C_SOURCE #endif