Fix MinGW compilation printing %lls, bug214

This commit is contained in:
Wilson Snyder
2010-02-01 09:28:53 -05:00
parent a41aefe77d
commit 8dca56521b
12 changed files with 62 additions and 26 deletions
+3 -3
View File
@@ -23,7 +23,7 @@
#include "verilatedos.h"
#include <sys/types.h>
#include <sys/stat.h>
#if !defined(__WIN32)
#ifndef _WIN32
# include <sys/utsname.h>
#endif
#include <cctype>
@@ -330,7 +330,7 @@ void V3Options::setenvStr(const string& envvar, const string& value, const strin
} else {
UINFO(1,"export "<<envvar<<"="<<value<<endl);
}
#ifndef __WIN32
#ifndef _WIN32
setenv(envvar.c_str(),value.c_str(),true);
#else
//setenv() replaced by putenv() in MinGW environment. Prototype is different
@@ -367,7 +367,7 @@ string V3Options::getenvSYSTEMC_ARCH() {
// Hardcoded with MINGW current version. Would like a better way.
string sysname = "MINGW32_NT-5.0";
var = "mingw32";
#elsif defined (__WIN32)
#elsif defined (_WIN32)
string sysname = "WIN32";
var = "win32";
#else