From 589b0fcdd6dadaf3aeb9ac78d3e4c1ee5532c2b7 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Fri, 26 Jul 2002 13:36:04 +0000 Subject: [PATCH] stdio kludge for OS/390; stdlib.h must be included after stdio.h --- include/ac/stdlib.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/ac/stdlib.h b/include/ac/stdlib.h index 2e3eb5502d..c2625caa86 100644 --- a/include/ac/stdlib.h +++ b/include/ac/stdlib.h @@ -32,4 +32,11 @@ # define EXIT_FAILURE 1 #endif +#ifdef HAVE_EBCDIC +#undef putchar +#undef putc +#define putchar(c) putc((c), stdout) +#define putc(c, fp) do { char x=(c); __atoe_l(&x,1); putc(x,fp);} while(0) +#endif + #endif /* _AC_STDLIB_H */ -- 2.39.5