[atdna] Enable C++14

[Athena] Add ifndef before ENABLE_BITWISE_ENUM
This commit is contained in:
Phillip Stephens 2015-11-21 20:20:15 -08:00
parent cdacc014f3
commit b798647e08
2 changed files with 3 additions and 1 deletions

View File

@ -2259,7 +2259,7 @@ int main(int argc, const char** argv)
std::vector<std::string> args = {"clang-tool",
"-fsyntax-only",
"-std=c++11",
"-std=c++14",
"-D__atdna__=1",
"-I" XSTR(INSTALL_PREFIX) "/lib/clang/" CLANG_VERSION_STRING "/include",
"-I" XSTR(INSTALL_PREFIX) "/include/Athena"};

View File

@ -69,6 +69,7 @@ typedef struct stat64 stat64_t;
#define ROUND_UP_32(val) (((val) + 31) & ~31)
#define ROUND_UP_16(val) (((val) + 15) & ~15)
#ifndef ENABLE_BITWISE_ENUM
#define ENABLE_BITWISE_ENUM(type)\
inline type operator|(type a, type b)\
{\
@ -97,6 +98,7 @@ inline type operator~(const type& key)\
using T = std::underlying_type_t<type>;\
return type(~static_cast<T>(key));\
}
#endif
namespace Athena
{