diff options
author | ipknHama <ipknhama@gmail.com> | 2015-02-20 11:47:23 +0900 |
---|---|---|
committer | ipknHama <ipknhama@gmail.com> | 2015-02-20 11:47:23 +0900 |
commit | 02f81f7eaa9b4428b33c471a020c43b2f647b91c (patch) | |
tree | 4f907a011ecb219ca38459713d330c302d190198 /include | |
parent | 92cf40e053d98e34a76944925555f74a44aa61a7 (diff) | |
download | crow-02f81f7eaa9b4428b33c471a020c43b2f647b91c.tar.gz crow-02f81f7eaa9b4428b33c471a020c43b2f647b91c.zip |
add CROW_MSVC_WORKAROUND and CROW_CAN_USE_CPP14 macro
Diffstat (limited to 'include')
-rw-r--r-- | include/settings.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/settings.h b/include/settings.h index e6b32cf..31a39e3 100644 --- a/include/settings.h +++ b/include/settings.h @@ -19,3 +19,17 @@ default to INFO */ #define CROW_LOG_LEVEL 1 + + +// compiler flags +#if __cplusplus >= 201402L +#define CROW_CAN_USE_CPP14 +#endif + +#if defined(_MSC_VER) +#if _MSC_VER < 1900 +#define CROW_MSVC_WORKAROUND +#define constexpr const +#define noexcept throw() +#endif +#endif |