Fix cygwin warning on fstapi, msg2770.
This commit is contained in:
parent
abd69167ef
commit
f700a73b3e
|
|
@ -271,6 +271,7 @@ typedef unsigned long long vluint64_t; ///< 64-bit unsigned type
|
||||||
// Alas cinttypes isn't that standard yet
|
// Alas cinttypes isn't that standard yet
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
# define __STDC_FORMAT_MACROS 1 // Otherwise MinGW doesn't get PRId64 for fstapi.c
|
||||||
# define VL_PRI64 "I64"
|
# define VL_PRI64 "I64"
|
||||||
#else // Linux or compliant Unix flavors
|
#else // Linux or compliant Unix flavors
|
||||||
# if defined(__WORDSIZE) && (__WORDSIZE == 64)
|
# if defined(__WORDSIZE) && (__WORDSIZE == 64)
|
||||||
|
|
|
||||||
|
|
@ -1193,6 +1193,9 @@ sub _make_main {
|
||||||
print $fh "// Test defines\n";
|
print $fh "// Test defines\n";
|
||||||
print $fh "#define VL_TIME_MULTIPLIER $self->{vl_time_multiplier}\n" if $self->{vl_time_multiplier};
|
print $fh "#define VL_TIME_MULTIPLIER $self->{vl_time_multiplier}\n" if $self->{vl_time_multiplier};
|
||||||
|
|
||||||
|
print $fh "// OS header\n";
|
||||||
|
print $fh "#include \"verilatedos.h\"\n";
|
||||||
|
|
||||||
print $fh "// Generated header\n";
|
print $fh "// Generated header\n";
|
||||||
my $VM_PREFIX = $self->{VM_PREFIX};
|
my $VM_PREFIX = $self->{VM_PREFIX};
|
||||||
print $fh "#include \"$VM_PREFIX.h\"\n";
|
print $fh "#include \"$VM_PREFIX.h\"\n";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue