Mercurial > gnulib
changeset 19848:fa8b7e29646a
GNU shell utilities
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Tue, 19 Apr 1994 13:02:59 +0000 |
parents | 5d9b97aa6640 |
children | dd6f4b037313 |
files | lib/getopt.c |
diffstat | 1 files changed, 5 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/getopt.c Mon Apr 04 22:05:41 1994 +0000 +++ b/lib/getopt.c Tue Apr 19 13:02:59 1994 +0000 @@ -190,11 +190,12 @@ /* If using GCC, we can safely declare strlen this way. If not using GCC, it is ok not to declare it. */ #ifdef __GNUC__ +/* Note that Motorola Delta 68k R3V7 comes with GCC but not stddef.h. + That was relevant to code that was here before. */ #ifndef __STDC__ -/* Motorola Delta 68k R3V7 comes with GCC but not stddef.h. - Enable Emacs to compile on it. */ -#include <stddef.h> -extern size_t strlen (const char *); +/* gcc with -traditional declares the built-in strlen to return int, + and has done so at least since version 2.4.5. -- rms. */ +extern int strlen (const char *); #endif /* not __STDC__ */ #endif /* __GNUC__ */