From 6a59c5176e3006cfaeb2d523fcac923c95ea495f Mon Sep 17 00:00:00 2001 From: Jarkko Hietaniemi Date: Sat, 10 Mar 2001 22:14:29 +0000 Subject: 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 --- ext/Encode/Encode.xs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/Encode') diff --git a/ext/Encode/Encode.xs b/ext/Encode/Encode.xs index 1332adab7c..310c7ba59a 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" -- cgit v1.2.1