This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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),

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]