From 27171a8cfadacd4badb995e824ecdbc7648c1fd0 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 27 Nov 2008 21:01:40 +0000 Subject: [PATCH] 2008-11-27 Ralf Corsepius * libc/posix/telldir.c: Use #if !defined() instead of #ifndef to fix GCC warning. --- newlib/ChangeLog | 5 +++++ newlib/libc/posix/telldir.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 6d4895b61..15801c26c 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2008-11-27 Ralf Corsepius + + * libc/posix/telldir.c: Use #if !defined() instead of #ifndef + to fix GCC warning. + 2008-11-27 Ken Werner * libc/machine/spu/Makefile.am: Add spu-mcount.S spu-gmon.c. diff --git a/newlib/libc/posix/telldir.c b/newlib/libc/posix/telldir.c index a8c5440d1..ad654b148 100644 --- a/newlib/libc/posix/telldir.c +++ b/newlib/libc/posix/telldir.c @@ -75,7 +75,7 @@ __LOCK_INIT(static, dd_hash_lock); * return a pointer into a directory */ -#ifndef _ELIX_LEVEL || _ELIX_LEVEL >= 2 +#if !defined(_ELIX_LEVEL) || (_ELIX_LEVEL >= 2) long _DEFUN(telldir, (dirp),