Adding comments for #undef per project owner request.

This commit is contained in:
jhuntley 2015-01-21 11:06:43 -05:00
parent f046be3cc1
commit d2a5153722
2 changed files with 13 additions and 6 deletions

17
Token.h
View File

@ -47,6 +47,17 @@
#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(__MINGW32__)
#undef IN
#undef CONST
#endif
namespace dev
{
namespace solidity
@ -65,12 +76,6 @@ 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) \

View File

@ -67,6 +67,8 @@ 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