mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update to resolve "#error : The macro "DELETE" from windows.h conflicts with this file." on windows vs build.
This commit is contained in:
parent
d2a5153722
commit
055f45f11b
2
Token.h
2
Token.h
@ -53,7 +53,7 @@
|
||||
|
||||
// Updates for mingw support. #undef conflicting defines which have been
|
||||
// repurposed for TOKEN_LIST on windows.
|
||||
#if defined(__MINGW32__)
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
#undef IN
|
||||
#undef CONST
|
||||
#endif
|
||||
|
12
Types.h
12
Types.h
@ -31,6 +31,12 @@
|
||||
#include <libsolidity/ASTForward.h>
|
||||
#include <libsolidity/Token.h>
|
||||
|
||||
// Updates for mingw support. #undef conflicting defines which have been
|
||||
// repurposed for TOKEN_LIST on windows.
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
#undef VOID
|
||||
#endif
|
||||
|
||||
namespace dev
|
||||
{
|
||||
namespace solidity
|
||||
@ -67,12 +73,6 @@ private:
|
||||
MemberMap m_memberTypes;
|
||||
};
|
||||
|
||||
// Updates for mingw support. #undef conflicting defines which have been
|
||||
// repurposed for TOKEN_LIST on windows.
|
||||
#if defined(__MINGW32__)
|
||||
#undef VOID
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Abstract base class that forms the root of the type hierarchy.
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user