Fix VerilatedSave compile issue on MSVCC, bug577.

This commit is contained in:
Wilson Snyder 2012-11-13 20:36:20 -05:00
parent 7a8c425103
commit 899a7df14a
2 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -34,6 +34,13 @@
# include <unistd.h>
#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