summaryrefslogtreecommitdiff
path: root/perl.h
diff options
context:
space:
mode:
authorMarcus Holland-Moritz <mhx-perl@gmx.net>2004-02-16 20:27:40 +0000
committerMarcus Holland-Moritz <mhx-perl@gmx.net>2004-02-16 20:27:40 +0000
commit1fd33325e0ec5c0de0c29643e96c30ebc6a21809 (patch)
treeaf3bba8373a8b2e4f2caf9da64398b6aba15a317 /perl.h
parent565440fe75df655888f197a8ed4cce3cd10ef2fb (diff)
downloadperl-1fd33325e0ec5c0de0c29643e96c30ebc6a21809.tar.gz
Fix for Win32 build failure caused by the byacc to bison switch.
p4raw-id: //depot/perl@22313
Diffstat (limited to 'perl.h')
-rw-r--r--perl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/perl.h b/perl.h
index 83d85330b9..ca0737ce63 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 */