mirror of
https://github.com/verilator/verilator.git
synced 2025-01-03 21:27:35 +00:00
Fix MinGW compiler error, bug927.
This commit is contained in:
parent
00759f777e
commit
dc6b085d8b
@ -1948,6 +1948,10 @@ Disable waveform tracing for all future signals declared in the specified
|
|||||||
filename (or wildcard with '*' or '?', or all files if omitted) and range
|
filename (or wildcard with '*' or '?', or all files if omitted) and range
|
||||||
of line numbers (or all lines if omitted).
|
of line numbers (or all lines if omitted).
|
||||||
|
|
||||||
|
Cells below any module in the files/ranges specified will also not be
|
||||||
|
traced.
|
||||||
|
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
|
||||||
|
@ -208,18 +208,12 @@ typedef unsigned long long vluint64_t; ///< 64-bit unsigned type
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32) && defined(_MSC_VER)
|
#if defined(_WIN32) && defined(_MSC_VER)
|
||||||
# define VL_SNPRINTF _snprintf
|
# if (_MSC_VER < 1900)
|
||||||
# define VL_VSNPRINTF vl_vsnprintf
|
# define VL_SNPRINTF _snprintf
|
||||||
inline int vl_vsnprintf(char* str, size_t size, const char* format, va_list ap) {
|
# else
|
||||||
int count = -1;
|
# define VL_SNPRINTF snprintf
|
||||||
if (size != 0) {
|
# endif
|
||||||
count = _vsnprintf_s(str, size, _TRUNCATE, format, ap);
|
# define VL_VSNPRINTF vsnprintf
|
||||||
}
|
|
||||||
if (count == -1) {
|
|
||||||
count = _vscprintf(format, ap);
|
|
||||||
}
|
|
||||||
return count;
|
|
||||||
}
|
|
||||||
#else
|
#else
|
||||||
# define VL_SNPRINTF snprintf
|
# define VL_SNPRINTF snprintf
|
||||||
# define VL_VSNPRINTF vsnprintf
|
# define VL_VSNPRINTF vsnprintf
|
||||||
|
Loading…
Reference in New Issue
Block a user