]> git.sur5r.net Git - openldap/commitdiff
stdio kludge for OS/390; stdlib.h must be included after stdio.h
authorHoward Chu <hyc@openldap.org>
Fri, 26 Jul 2002 13:36:04 +0000 (13:36 +0000)
committerHoward Chu <hyc@openldap.org>
Fri, 26 Jul 2002 13:36:04 +0000 (13:36 +0000)
include/ac/stdlib.h

index 2e3eb5502d44f794fd30516aec2ba905c552261e..c2625caa86331945f946e80d16d05310c03734f6 100644 (file)
 #      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 */