X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fstdlib.m4;h=4ac56358288608e757f89c3a4c69019462c89fda;hp=c7654b67cf38f2b99c46a3319fdf5d2f91fa11dd;hb=77a446cbcdce6558c00066e5f13e43e8b1b18ff7;hpb=39831a9cf4a4aa9f126bc9a949f03ae232e3794b diff --git a/m4/stdlib.m4 b/m4/stdlib.m4 index c7654b6..4ac5635 100644 --- a/m4/stdlib.m4 +++ b/m4/stdlib.m4 @@ -9,6 +9,10 @@ PSI_CHECK_STDLIB() { long quot, long rem ]) + PSI_STRUCT(lldiv_t, [ + long long quot, + long long rem + ]) PSI_CONST(EXIT_FAILURE, int) PSI_CONST(EXIT_SUCCESS, int) @@ -22,7 +26,7 @@ PSI_CHECK_STDLIB() { PSI_DECL(double atof, [(char *str)]) PSI_DECL(int atoi, [(char *str)]) PSI_DECL(long atol, [(char *str)]) - dnl PSI_DECL(div_t div, [(int numerator, int denominator)]) + PSI_DECL(div_t div, [(int numerator, int denominator)]) PSI_DECL(double drand48, [()]) PSI_DECL(double erand48, [(unsigned short xsubi@<:@3@:>@)]) PSI_DECL(void exit, [(int status)]) @@ -33,7 +37,8 @@ PSI_CHECK_STDLIB() { PSI_DECL(long jrand48, [(unsigned short xsubi@<:@3@:>@)]) PSI_DECL(long labs, [(long l)]) PSI_DECL(void lcong48, [(unsigned short param@<:@7@:>@)]) - dnl PSI_DECL(ldiv_t ldiv, [(long numerator, long denominator)]) + PSI_DECL(ldiv_t ldiv, [(long numerator, long denominator)]) + PSI_DECL(lldiv_t lldiv, [(long long numerator, long long denominator)]) PSI_DECL(long lrand48, [()]) PSI_DECL(int mblen, [(const char *s, size_t n)]) PSI_DECL(size_t mbstowcs, [(wchar_t *dest, char *src, size_t n)])