comparison lib-src/getopt.c @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents e11d67e05968
children de805c49cfc1
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
29 #ifndef _NO_PROTO 29 #ifndef _NO_PROTO
30 #define _NO_PROTO 30 #define _NO_PROTO
31 #endif 31 #endif
32 32
33 #ifdef HAVE_CONFIG_H 33 #ifdef HAVE_CONFIG_H
34 #include <../src/config.h> 34 #include <config.h>
35 #endif 35 #endif
36 36
37 #include <stdio.h> 37 #include <stdio.h>
38 #include <string.h> 38 #include <string.h>
39 #include <stdlib.h> 39 #include <stdlib.h>
199 On some systems, it contains special magic macros that don't work 199 On some systems, it contains special magic macros that don't work
200 in GCC. */ 200 in GCC. */
201 #include <string.h> 201 #include <string.h>
202 #define my_index strchr 202 #define my_index strchr
203 #else 203 #else
204
205 /* Avoid depending on library functions or files
206 whose names are inconsistent. */
207
208 char *getenv ();
209 204
210 static char * 205 static char *
211 my_index (const char *str, int chr) 206 my_index (const char *str, int chr)
212 { 207 {
213 while (*str) 208 while (*str)