From 455c552132d42c9fdd6ca353e7bf1dd328bf035c Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 4 Mar 2019 20:29:01 -0500 Subject: [PATCH] Fix MSVC compile error, bug1406. --- Changes | 2 ++ include/verilated.cpp | 2 +- src/V3Os.cpp | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index ad96861a0..756dd7f90 100644 --- a/Changes +++ b/Changes @@ -12,6 +12,8 @@ The contributors that suggested a given feature are shown in []. Thanks! **** Fix $value$plus$args missing verilated_heavy.h. [Yi-Chung Chen] +**** Fix MSVC compile error, bug1406. [Benjamin Gartner] + * Verilator 4.010 2019-01-27 diff --git a/include/verilated.cpp b/include/verilated.cpp index ab406b9fb..4277a555a 100644 --- a/include/verilated.cpp +++ b/include/verilated.cpp @@ -33,7 +33,7 @@ #include #include // mkdir -#if defined(WIN32) || defined(__MINGW32__) +#if defined(_WIN32) || defined(__MINGW32__) # include // mkdir #endif diff --git a/src/V3Os.cpp b/src/V3Os.cpp index 9ad11e905..511ace89c 100644 --- a/src/V3Os.cpp +++ b/src/V3Os.cpp @@ -36,7 +36,7 @@ #include #include -#if defined(WIN32) || defined(__MINGW32__) +#if defined(_WIN32) || defined(__MINGW32__) # include // mkdir #endif