summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2015-08-14 06:37:26 -0700
committerKaz Kylheku <kaz@kylheku.com>2015-08-14 06:37:26 -0700
commitfdde4f5cd3ae46c6c0e84d0cf240d80d61eb051d (patch)
tree55ac3f49acd9152d96f40c85ce9d4e85a694bdc1
parentfdb54c85577859e26525463c2e21801cd9b2377c (diff)
downloadtxr-fdde4f5cd3ae46c6c0e84d0cf240d80d61eb051d.tar.gz
txr-fdde4f5cd3ae46c6c0e84d0cf240d80d61eb051d.tar.bz2
txr-fdde4f5cd3ae46c6c0e84d0cf240d80d61eb051d.zip
Fix TEXT macro clash on Windows.
* txr.c (TEXT): Undefined this macro after including <windows.h>. It clashes with a TEXT macro in y.tab.h.
-rw-r--r--txr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/txr.c b/txr.c
index 6dedb8a8..08c5ede7 100644
--- a/txr.c
+++ b/txr.c
@@ -39,6 +39,7 @@
#endif
#if HAVE_WINDOWS_H
#include <windows.h>
+#undef TEXT
#endif
#include "lib.h"
#include "stream.h"