diff --git a/newlib/libc/stdio/nano-vfprintf.c b/newlib/libc/stdio/nano-vfprintf.c index bc7ed0743..838804eb9 100644 --- a/newlib/libc/stdio/nano-vfprintf.c +++ b/newlib/libc/stdio/nano-vfprintf.c @@ -356,7 +356,7 @@ __sprint_r (struct _reent *ptr, uio->uio_iovcnt = 0; return 0; } -#ifdef _WIDE_ORIENT +#if defined _WIDE_ORIENT && (!defined _ELIX_LEVEL || _ELIX_LEVEL >= 4) if (fp->_flags2 & __SWID) { struct __siov *iov; @@ -407,7 +407,7 @@ __sfputs_r (struct _reent *ptr, { register int i; -#ifdef _WIDE_ORIENT +#if defined _WIDE_ORIENT && (!defined _ELIX_LEVEL || _ELIX_LEVEL >= 4) if (fp->_flags2 & __SWID) { wchar_t *p; diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c index c1483c0ac..32ebb1468 100644 --- a/newlib/libc/stdio/vfprintf.c +++ b/newlib/libc/stdio/vfprintf.c @@ -370,7 +370,7 @@ __sfputs_r (struct _reent *ptr, { register int i; -#ifdef _WIDE_ORIENT +#if defined _WIDE_ORIENT && (!defined _ELIX_LEVEL || _ELIX_LEVEL >= 4) if (fp->_flags2 & __SWID) { wchar_t *p; @@ -406,7 +406,7 @@ __sprint_r (struct _reent *ptr, uio->uio_iovcnt = 0; return (0); } -#ifdef _WIDE_ORIENT +#if defined _WIDE_ORIENT && (!defined _ELIX_LEVEL || _ELIX_LEVEL >= 4) if (fp->_flags2 & __SWID) { struct __siov *iov; wchar_t *p;