From 899a7df14a12ea7e1f2493aa4f793e974d1d3d75 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 13 Nov 2012 20:36:20 -0500 Subject: [PATCH] Fix VerilatedSave compile issue on MSVCC, bug577. --- Changes | 3 +-- include/verilated_save.cpp | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Changes b/Changes index 3700be2b3..6240d3fd2 100644 --- a/Changes +++ b/Changes @@ -7,8 +7,7 @@ indicates the contributor was also the author of the fix; Thanks! *** Add +1364-1995ext and similar language options, bug532. [Jeremy Bennett] -**** Fix svdpi compile issue on MSVCC, bug571. [Amir Gonnen] - +**** Fix compile issues on MSVCC, bug571, bug577. [Amir Gonnen] * Verilator 3.842 2012/11/03 diff --git a/include/verilated_save.cpp b/include/verilated_save.cpp index e01b0d9fe..df12516a6 100644 --- a/include/verilated_save.cpp +++ b/include/verilated_save.cpp @@ -34,6 +34,13 @@ # include #endif +#ifndef O_LARGEFILE // For example on WIN32 +# define O_LARGEFILE 0 +#endif +#ifndef O_NONBLOCK +# define O_NONBLOCK 0 +#endif + // CONSTANTS static const char* VLTSAVE_HEADER_STR = "verilatorsave01\n"; ///< Value of first bytes of each file static const char* VLTSAVE_TRAILER_STR = "vltsaved"; ///< Value of last bytes of each file