This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

Re: Minor change to regex.c


> cc -c -DHAVE_CONFIG_H -g -I. -I../../gcc/libiberty/../include   ../../gcc/lib
> iberty/regex.c
> "../../gcc/libiberty/regex.c", line 1550: undefined or not a type: fail_stack
> _elt
> "../../gcc/libiberty/regex.c", line 1551: cannot recover from previous errors
> cc: acomp failed for ../../gcc/libiberty/regex.c
> make: *** [regex.o] Error 2
> 
> I got this on sun solaris 2.7 with 'WorkShop Compilers 5.0 98/12/15 C 5.0'.
> This happens because __STDC__ is defined 0. FYI
> 
> # if defined __STDC__  && __STDC__
> #  define PREFIX(name) byte_##name
> # else
> # else
> #  define PREFIX(name) byte_/**/name
> # endif
And your proposed fix would be?

jeff


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