mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix MinGW compilation printing %lls, bug214
This commit is contained in:
+3
-3
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user