This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch] warning fix
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: Newlib List <newlib at sources dot redhat dot com>
- Date: Thu, 27 Nov 2008 06:28:53 +0100
- Subject: [patch] warning fix
Hi,
GCC complains about "junk at end of #ifdef" in libc/posix/telldir.c
The patch below is supposed to fix this issue.
Ralf
2008-11-26 Ralf CorsÃpius <ralf.corsepius@rtems.org>
* libc/posix/telldir.c: Use #if !defined() instead of #ifndef
to fix GCC warning.
Index: libc/posix/telldir.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/posix/telldir.c,v
retrieving revision 1.5
diff -u -r1.5 telldir.c
--- libc/posix/telldir.c 6 Jun 2003 19:57:51 -0000 1.5
+++ libc/posix/telldir.c 27 Nov 2008 05:23:31 -0000
@@ -75,7 +75,7 @@
* return a pointer into a directory
*/
-#ifndef _ELIX_LEVEL || _ELIX_LEVEL >= 2
+#if !defined(_ELIX_LEVEL) || (_ELIX_LEVEL >= 2)
long
_DEFUN(telldir, (dirp),