diff options
author | Mattias Andrée <maandree@operamail.com> | 2015-11-14 02:31:54 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2015-11-14 02:31:54 +0100 |
commit | 5a0cea3ebf4e35ed6eaba863576d9eaa35d8d584 (patch) | |
tree | 98d412dfa3d2ca157713ba368a5734db9e9865f6 /include | |
parent | m doc (diff) | |
download | slibc-5a0cea3ebf4e35ed6eaba863576d9eaa35d8d584.tar.gz slibc-5a0cea3ebf4e35ed6eaba863576d9eaa35d8d584.tar.bz2 slibc-5a0cea3ebf4e35ed6eaba863576d9eaa35d8d584.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/slibc-human.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 <bits/types.h> @@ -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); |