mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Consolidating macro resolution to one header file as per project owner request. Added inline comments covering reasons for undef of macros. Resolves issues with problem #832:
Adding UndefWindowsMacros.h to handle V8 CPP conflicts in Windows #832
This commit is contained in:
parent
055f45f11b
commit
a4d772315d
12
Token.h
12
Token.h
@ -46,17 +46,7 @@
|
||||
#include <libdevcore/Log.h>
|
||||
#include <libsolidity/Utils.h>
|
||||
#include <libsolidity/Exceptions.h>
|
||||
|
||||
#if defined(DELETE)
|
||||
#undef DELETE
|
||||
#endif
|
||||
|
||||
// Updates for mingw support. #undef conflicting defines which have been
|
||||
// repurposed for TOKEN_LIST on windows.
|
||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||
#undef IN
|
||||
#undef CONST
|
||||
#endif
|
||||
#include <libdevcore/UndefMacros.h>
|
||||
|
||||
namespace dev
|
||||
{
|
||||
|
7
Types.h
7
Types.h
@ -30,12 +30,7 @@
|
||||
#include <libsolidity/Exceptions.h>
|
||||
#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
|
||||
#include <libdevcore/UndefMacros.h>
|
||||
|
||||
namespace dev
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user