X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fstdio.m4;h=a2b40b56477a4ad74519350f28b3fc1b808b4be5;hp=2f079c117eefd78055f43e06c77c03f304c9f55d;hb=e8a409b21cb50f5931ab02ce6ab4f4406be94394;hpb=b1720af16e5d7765e2effcd16e23f351c2f82e54 diff --git a/m4/stdio.m4 b/m4/stdio.m4 index 2f079c1..a2b40b5 100644 --- a/m4/stdio.m4 +++ b/m4/stdio.m4 @@ -1,5 +1,5 @@ PSI_CHECK_STDIO() { - AC_CHECK_HEADER(stdio.h) + PSI_CONFIG_POSIX(stdio, stdio.h) PSI_STRUCT(FILE) PSI_STRUCT(fpos_t) @@ -19,6 +19,10 @@ PSI_CHECK_STDIO() { PSI_CONST(L_ctermid, int) PSI_CONST(L_tmpnam, int) + PSI_MACRO(FILE *stderr) + PSI_MACRO(FILE *stdout) + PSI_MACRO(FILE *stdin) + PSI_DECL(void clearerr, [(FILE *stream)]) PSI_DECL(char *ctermid, [(char *s)]) PSI_DECL(int fclose, [(FILE *stream)])