We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ff58012 commit c2142a4Copy full SHA for c2142a4
apps/parser.cpp
@@ -118,7 +118,14 @@ void Writer::writeCPP()
118
term_list += ",";
119
}
120
if(term_list.size() > 1) term_list.pop_back();
121
+ outfile << "#ifdef _WIN32\n";
122
+ outfile << "#ifdef BUILDING_DLL\n";
123
outfile << "const std::vector<std::reference_wrapper<Terminfo::Terminfo>> Terminfo::Terminfos::m_terminfos{" << term_list << "};\n";
124
+ outfile << "#endif\n";
125
+ outfile << "#else\n";
126
+ outfile << "const std::vector<std::reference_wrapper<Terminfo::Terminfo>> Terminfo::Terminfos::m_terminfos{" << term_list << "};\n";
127
128
+
129
outfile.close();
130
131
0 commit comments