comparison lib/getopt.c @ 187:a6805e98cb7f

merge with 1.9.2i
author Jim Meyering <jim@meyering.net>
date Sat, 12 Feb 1994 17:23:51 +0000
parents 09762e848a40
children 8745ae7b868c
comparison
equal deleted inserted replaced
186:09762e848a40 187:a6805e98cb7f
193 } 193 }
194 return 0; 194 return 0;
195 } 195 }
196 196
197 /* If using GCC, we can safely declare strlen this way. 197 /* If using GCC, we can safely declare strlen this way.
198 If not using GCC, it is ok not to declare it. 198 If not using GCC, it is ok not to declare it. */
199 (Supposedly there are some machines where it might get a warning,
200 but changing this conditional to __STDC__ is too risky.) */
201 #ifdef __GNUC__ 199 #ifdef __GNUC__
202 #if ! (defined (emacs) && !defined (__STDC__)) 200 #ifndef __STDC__
203 #ifdef IN_GCC 201 #ifdef IN_GCC
204 #include "gstddef.h" 202 #include "gstddef.h"
205 #else /* not IN_GCC */ 203 #else /* not IN_GCC */
206 /* Motorola Delta 68k R3V7 comes with GCC but not stddef.h. 204 /* Motorola Delta 68k R3V7 comes with GCC but not stddef.h.
207 Enable Emacs to compile on it. */ 205 Enable Emacs to compile on it. */
208 #include <stddef.h> 206 #include <stddef.h>
209 #endif /* not IN_GCC */ 207 #endif /* not IN_GCC */
210 extern size_t strlen (const char *); 208 extern size_t strlen (const char *);
211 #endif /* ! (defined (emacs) && !defined (__STDC__)) */ 209 #endif /* not __STDC__ */
212 #endif /* __GNUC__ */ 210 #endif /* __GNUC__ */
213 211
214 #endif /* not __GNU_LIBRARY__ */ 212 #endif /* not __GNU_LIBRARY__ */
215 213
216 /* Handle permutation of arguments. */ 214 /* Handle permutation of arguments. */