Commit a12767db authored by Harris Hancock's avatar Harris Hancock

Remove MSVC exclusion from StructText generator

parent 19763777
...@@ -1909,13 +1909,9 @@ private: ...@@ -1909,13 +1909,9 @@ private:
structNode.getPointerCount(), ")\n"); structNode.getPointerCount(), ")\n");
kj::StringTree defineText = kj::strTree( kj::StringTree defineText = kj::strTree(
"// ", fullName, "\n" "// ", fullName, "\n",
// TODO(msvc): MSVC doen't expect constexprs to have definitions. Remove #if once
// MSVC catches up on constexpr.
"#ifndef _MSC_VER\n",
templates, "constexpr uint16_t ", fullName, "::_capnpPrivate::dataWordSize;\n", templates, "constexpr uint16_t ", fullName, "::_capnpPrivate::dataWordSize;\n",
templates, "constexpr uint16_t ", fullName, "::_capnpPrivate::pointerCount;\n" templates, "constexpr uint16_t ", fullName, "::_capnpPrivate::pointerCount;\n"
"#endif\n",
"#if !CAPNP_LITE\n", "#if !CAPNP_LITE\n",
templates, "constexpr ::capnp::Kind ", fullName, "::_capnpPrivate::kind;\n", templates, "constexpr ::capnp::Kind ", fullName, "::_capnpPrivate::kind;\n",
templates, "constexpr ::capnp::_::RawSchema const* ", fullName, "::_capnpPrivate::schema;\n", templates, "constexpr ::capnp::_::RawSchema const* ", fullName, "::_capnpPrivate::schema;\n",
......
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