This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Minor change to regex.c
- From: law at redhat dot com
- To: Andrey Petrov <and at genesyslab dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Nov 2001 19:17:33 -0500
- Subject: Re: Minor change to regex.c
- Reply-to: law at redhat dot com
> 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