From 5a0cea3ebf4e35ed6eaba863576d9eaa35d8d584 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 14 Nov 2015 02:31:54 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- include/slibc-human.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/slibc-human.h b/include/slibc-human.h index 665b86c..9ebba26 100644 --- a/include/slibc-human.h +++ b/include/slibc-human.h @@ -24,8 +24,10 @@ #define __NEED_mode_t -#define __NEED_intmax_t -#define __NEED_uintmax_t +#ifdef __C99__ +# define __NEED_intmax_t +# define __NEED_uintmax_t +#endif #include @@ -168,6 +170,7 @@ char* humansize(const char* buffer, size_t size, enum humansize_mode mode, int d int machinesize(size_t* restrict size, char* string, enum machinesize_mode mode); +#ifdef __C99__ int humandur(intmax_t restrict sec, long int nsec, const char* comma, const char* format); int machinedur(intmax_t* restrict sec, long int* nsec, const char* restrict str, @@ -177,6 +180,7 @@ int machinedur(intmax_t* restrict sec, long int* nsec, const char* restrict str, int machineint(intmax_t* restrict r, const char* restrict str); int machineuint(uintmax_t* restrict r, const char* restrict str); +#endif int machinefloat(long double* restrict r, const char* restrict str, const char* restrict space, const char* restrict comma); -- cgit v1.2.3-70-g09d2