Commit 7f04f657 authored by Kenton Varda's avatar Kenton Varda

Fix GCC 4.9 which defines __cplusplus wrong for C++14.

parent 5cd3e108
......@@ -30,7 +30,9 @@
#endif
#ifndef KJ_NO_COMPILER_CHECK
#if __cplusplus < 201402L && !__CDT_PARSER__ && !_MSC_VER
// Technically, __cplusplus should be 201402L for C++14, but GCC 4.9 -- which is supported -- still
// had it defined to 201300L even with -std=c++14.
#if __cplusplus < 201300L && !__CDT_PARSER__ && !_MSC_VER
#error "This code requires C++14. Either your compiler does not support it or it is not enabled."
#ifdef __GNUC__
// Compiler claims compatibility with GCC, so presumably supports -std.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment