mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 12:17:35 +00:00
Fix build error on MinGW, bug1460.
This commit is contained in:
parent
77c2d49d1a
commit
2cedd14d43
2
Changes
2
Changes
@ -30,6 +30,8 @@ The contributors that suggested a given feature are shown in []. Thanks!
|
||||
|
||||
**** Fix type and real parameter issues, bug1427, bug1456, bug1458. [Todd Strader]
|
||||
|
||||
**** Fix build error on MinGW, bug1460. [Richard Myers]
|
||||
|
||||
|
||||
* Verilator 4.014 2019-05-08
|
||||
|
||||
|
@ -7,5 +7,6 @@ Please see the Verilator manual for additional contributors.
|
||||
Jeremy Bennett
|
||||
John Coiner
|
||||
Kanad Kanhere
|
||||
Richard Myers
|
||||
Stefan Wallentowitz
|
||||
Wilson Snyder
|
||||
|
@ -206,6 +206,11 @@
|
||||
//=========================================================================
|
||||
// Basic integer types
|
||||
|
||||
#ifdef __MINGW32__
|
||||
# define __USE_MINGW_ANSI_STDIO 1 // Force old MinGW (GCC 5 and older) to use C99 formats
|
||||
# define __STDC_FORMAT_MACROS 1 // Otherwise MinGW doesn't get PRId64 for fstapi.c
|
||||
#endif
|
||||
|
||||
#if defined(__CYGWIN__)
|
||||
|
||||
# include <stdint.h>
|
||||
@ -278,10 +283,6 @@ typedef unsigned long long vluint64_t; ///< 64-bit unsigned type
|
||||
#ifdef _MSC_VER
|
||||
# define VL_PRI64 "I64"
|
||||
#else // use standard C99 format specifiers
|
||||
# ifdef __MINGW32__
|
||||
# define __USE_MINGW_ANSI_STDIO 1 // Force old MinGW (GCC 5 and older) to use C99 formats
|
||||
# define __STDC_FORMAT_MACROS 1 // Otherwise MinGW doesn't get PRId64 for fstapi.c
|
||||
# endif
|
||||
# if defined(__WORDSIZE) && (__WORDSIZE == 64)
|
||||
# define VL_PRI64 "l"
|
||||
# else
|
||||
|
Loading…
Reference in New Issue
Block a user