Stop perl from hijacking stdio and other stuff on Windows.

This commit is contained in:
Andrew Dunstan 2006-01-08 15:50:00 +00:00
parent e1926aa91e
commit ed47146f1e
3 changed files with 19 additions and 1 deletions

View File

@ -4,6 +4,12 @@
#undef _
/* 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"

View File

@ -33,7 +33,7 @@
* ENHANCEMENTS, OR MODIFICATIONS.
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.94.2.1 2005/11/22 18:23:30 momjian Exp $
* $PostgreSQL: pgsql/src/pl/plperl/plperl.c,v 1.94.2.2 2006/01/08 15:50:00 adunstan Exp $
*
**********************************************************************/
@ -57,6 +57,12 @@
#include "mb/pg_wchar.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"

View File

@ -8,6 +8,12 @@
/* Defined by Perl */
#undef _
/* stop perl from hijacking stdio and other stuff */
#ifdef WIN32
#define WIN32IO_IS_STDIO
#endif
#include "spi_internal.h"