From: Marcus Holland-Moritz Date: Mon, 16 Feb 2004 20:27:40 +0000 (+0000) Subject: Fix for Win32 build failure caused by the byacc to bison switch. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1fd33325e0ec5c0de0c29643e96c30ebc6a21809;p=p5sagit%2Fp5-mst-13.2.git Fix for Win32 build failure caused by the byacc to bison switch. p4raw-id: //depot/perl@22313 --- diff --git a/perl.h b/perl.h index 83d8533..ca0737c 100644 --- a/perl.h +++ b/perl.h @@ -3273,6 +3273,13 @@ END_EXTERN_C #endif #endif +/* Win32 defines a type 'WORD' in windef.h. This conflicts with the enumerator + * 'WORD' defined in perly.h. The yytokentype enum is only a debugging aid, so + * it's not really needed. + */ +#if defined(WIN32) +# define YYTOKENTYPE +#endif #include "perly.h" #define LEX_NOTPARSING 11 /* borrowed from toke.c */