Fix compile error on MinGW, bug887.

This commit is contained in:
Wilson Snyder
2015-02-26 20:40:45 -05:00
parent 6ac672b4a3
commit 751384cb5c
15 changed files with 281 additions and 200 deletions
+2 -13
View File
@@ -21,6 +21,8 @@
// Cheat for speed and compile .cpp files into one object
#define _V3ERROR_NO_GLOBAL_ 1
#include "V3Error.cpp"
#include "V3String.cpp"
#include "V3Os.cpp"
#include "VlcTop.cpp"
#include "VlcOptions.h"
@@ -130,19 +132,6 @@ void VlcOptions::showVersion(bool verbose) {
cout << "See http://www.veripool.org/verilator for documentation\n";
}
//######################################################################
// File searching
// (TODO: Make a V3Os with these functions and share with Verilator)
string VlcOptions::filenameNonDir (const string& filename) {
string::size_type pos;
if ((pos = filename.rfind("/")) != string::npos) {
return filename.substr(pos+1);
} else {
return filename;
}
}
//######################################################################
int main(int argc, char** argv, char** env) {