summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/nostdio.h
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/perl5/nostdio.h')
-rw-r--r--contrib/perl5/nostdio.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/perl5/nostdio.h b/contrib/perl5/nostdio.h
new file mode 100644
index 0000000..256a638
--- /dev/null
+++ b/contrib/perl5/nostdio.h
@@ -0,0 +1,26 @@
+/* This is an 1st attempt to stop other include files pulling
+ in real <stdio.h>.
+ A more ambitious set of possible symbols can be found in
+ sfio.h (inside an _cplusplus gard).
+*/
+#if !defined(_STDIO_H) && !defined(FILE) && !defined(_STDIO_INCLUDED) && !defined(__STDIO_LOADED)
+#define _STDIO_H
+#define _STDIO_INCLUDED
+#define __STDIO_LOADED
+struct _FILE;
+#define FILE struct _FILE
+#endif
+
+#define _CANNOT "CANNOT"
+
+#undef stdin
+#undef stdout
+#undef stderr
+#undef getc
+#undef putc
+#undef clearerr
+#undef fflush
+#undef feof
+#undef ferror
+#undef fileno
+
OpenPOWER on IntegriCloud