From 46dbc7157d708c1fcf0ad21843e470d7d115d8f6 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 1 Feb 2010 06:41:17 -0500 Subject: [PATCH] Redo MingW ifdefs to also work on generic WIN32, MSVC++ --- src/V3File.cpp | 4 ++-- src/V3Options.cpp | 9 ++++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/V3File.cpp b/src/V3File.cpp index 64dffb0ff..798ef9c77 100644 --- a/src/V3File.cpp +++ b/src/V3File.cpp @@ -161,7 +161,7 @@ inline void V3FileDependImp::writeTimes(const string& filename, const string& cm *ofp<<"# DESCR"<<"IPTION: Verilator output: Timestamp data for --skip-identical. Delete at will."<::iterator iter=m_filenameList.begin(); @@ -258,7 +258,7 @@ void V3File::createMakeDir() { static bool created = false; if (!created) { created = true; -#if !defined (__MINGW32__) +#ifndef __WIN32 mkdir(v3Global.opt.makeDir().c_str(), 0777); #else mkdir(v3Global.opt.makeDir().c_str()); diff --git a/src/V3Options.cpp b/src/V3Options.cpp index 8d9c1969e..99cecc4a1 100644 --- a/src/V3Options.cpp +++ b/src/V3Options.cpp @@ -23,8 +23,8 @@ #include "verilatedos.h" #include #include -#if !defined(__MINGW32__) -#include +#if !defined(__WIN32) +# include #endif #include #include @@ -330,7 +330,7 @@ void V3Options::setenvStr(const string& envvar, const string& value, const strin } else { UINFO(1,"export "<