Fix for Win32 build failure caused by the byacc to bison switch.
authorMarcus Holland-Moritz <mhx-perl@gmx.net>
Mon, 16 Feb 2004 20:27:40 +0000 (20:27 +0000)
committerMarcus Holland-Moritz <mhx-perl@gmx.net>
Mon, 16 Feb 2004 20:27:40 +0000 (20:27 +0000)
p4raw-id: //depot/perl@22313

perl.h

diff --git a/perl.h b/perl.h
index 83d8533..ca0737c 100644 (file)
--- 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 */