From: Jarkko Hietaniemi Date: Sat, 10 Mar 2001 22:14:29 +0000 (+0000) Subject: Use #if defined(USE_PERLIO) && !defined(USE_SFIO) instead of just X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6a59c5176e3006cfaeb2d523fcac923c95ea495f;p=p5sagit%2Fp5-mst-13.2.git Use #if defined(USE_PERLIO) && !defined(USE_SFIO) instead of just #ifdef USE_PERLIO in Encode.xs so that the perlio symbols don't pollute the symbolspace if using sfio. p4raw-id: //depot/perl@9100 --- diff --git a/ext/Encode/Encode.xs b/ext/Encode/Encode.xs index 1332ada..310c7ba 100644 --- a/ext/Encode/Encode.xs +++ b/ext/Encode/Encode.xs @@ -14,7 +14,7 @@ UNIMPLEMENTED(_encoded_utf8_to_bytes, I32) UNIMPLEMENTED(_encoded_bytes_to_utf8, I32) -#ifdef USE_PERLIO +#if defined(USE_PERLIO) && !defined(USE_SFIO) /* Define an encoding "layer" in the perliol.h sense. The layer defined here "inherits" in an object-oriented sense from the "perlio" layer with its PerlIOBuf_* "methods". @@ -640,7 +640,7 @@ _utf8_off(sv) BOOT: { -#ifdef USE_PERLIO +#if defined(USE_PERLIO) && !defined(USE_SFIO) PerlIO_define_layer(&PerlIO_encode); #endif #include "iso8859.def"