aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhuntley <jhuntley@houghtonassociates.com>2015-01-17 05:56:13 +0800
committerjhuntley <jhuntley@houghtonassociates.com>2015-03-05 00:17:45 +0800
commitf046be3cc1f501e0bf5e766ed902f956a879f976 (patch)
tree858575117ffb574a6a4bdb1116c97a942c61568f
parentd82b8c2738609fdcc4254a72519516bde03e147e (diff)
downloaddexon-solidity-f046be3cc1f501e0bf5e766ed902f956a879f976.tar
dexon-solidity-f046be3cc1f501e0bf5e766ed902f956a879f976.tar.gz
dexon-solidity-f046be3cc1f501e0bf5e766ed902f956a879f976.tar.bz2
dexon-solidity-f046be3cc1f501e0bf5e766ed902f956a879f976.tar.lz
dexon-solidity-f046be3cc1f501e0bf5e766ed902f956a879f976.tar.xz
dexon-solidity-f046be3cc1f501e0bf5e766ed902f956a879f976.tar.zst
dexon-solidity-f046be3cc1f501e0bf5e766ed902f956a879f976.zip
Updates for mingw support. #undef conflicting defines on windows.
-rw-r--r--Token.h6
-rw-r--r--Types.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/Token.h b/Token.h
index 5e4a6317..2c24f7af 100644
--- a/Token.h
+++ b/Token.h
@@ -65,6 +65,12 @@ namespace solidity
// an argument (at any position) for a TOKEN_LIST call. It does
// nothing with tokens belonging to the respective category.
+#if defined(__MINGW32__)
+#undef IN
+#undef DELETE
+#undef CONST
+#endif
+
#define IGNORE_TOKEN(name, string, precedence)
#define TOKEN_LIST(T, K) \
diff --git a/Types.h b/Types.h
index 8474c6c0..99c083c0 100644
--- a/Types.h
+++ b/Types.h
@@ -67,6 +67,9 @@ private:
MemberMap m_memberTypes;
};
+#if defined(__MINGW32__)
+#undef VOID
+#endif
/**
* Abstract base class that forms the root of the type hierarchy.