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:
jhuntley 2015-01-23 13:27:56 -05:00
parent 055f45f11b
commit a4d772315d
2 changed files with 2 additions and 17 deletions

12
Token.h
View File

@ -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
{

View File

@ -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
{