#include "postgres.h"
/* perl stuff */
+
+/* stop perl from hijacking stdio and other stuff */
+#ifdef WIN32
+#define WIN32IO_IS_STDIO
+#endif
+
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include "utils/typcache.h"
/* perl stuff */
+
+/* stop perl from hijacking stdio and other stuff */
+#ifdef WIN32
+#define WIN32IO_IS_STDIO
+#endif
+
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include "postgres.h"
+
+/* stop perl from hijacking stdio and other stuff */
+#ifdef WIN32
+#define WIN32IO_IS_STDIO
+#endif
+
#include "spi_internal.h"