Only include libresrc.h once rather than once per file packed

Originally committed to SVN as r4475.
This commit is contained in:
Thomas Goyne 2010-06-11 02:25:18 +00:00
parent de974fb723
commit 8c8e668758
1 changed files with 2 additions and 1 deletions

View File

@ -113,6 +113,8 @@ int main(int argc, const char *argv[]) {
ofstream outH(headerFileName.GetFullPath().char_str()); ofstream outH(headerFileName.GetFullPath().char_str());
ofstream outC(argv[1]); ofstream outC(argv[1]);
outC << "#include \"libresrc.h\"" << endl;
wxRegEx nameCleaner("[^A-Za-z_0-9]"); wxRegEx nameCleaner("[^A-Za-z_0-9]");
wxString filename; wxString filename;
FileIterator iter(argc, argv); FileIterator iter(argc, argv);
@ -134,7 +136,6 @@ int main(int argc, const char *argv[]) {
nameCleaner.ReplaceAll(&identifier, "_"); nameCleaner.ReplaceAll(&identifier, "_");
std::string tmp(identifier.mb_str()); std::string tmp(identifier.mb_str());
outC << "#include \"libresrc.h\"" << endl;
outC << "const unsigned char " << tmp << "[] = {"; outC << "const unsigned char " << tmp << "[] = {";
bool first = true; bool first = true;
char c[1]; char c[1];