Skip to content

Commit c2142a4

Browse files
committed
fix
1 parent ff58012 commit c2142a4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/parser.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,14 @@ void Writer::writeCPP()
118118
term_list += ",";
119119
}
120120
if(term_list.size() > 1) term_list.pop_back();
121+
outfile << "#ifdef _WIN32\n";
122+
outfile << "#ifdef BUILDING_DLL\n";
121123
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+
outfile << "#endif\n";
128+
122129
outfile.close();
123130
}
124131

0 commit comments

Comments
 (0)