Fix MinGW compiler error, bug927.

This commit is contained in:
Wilson Snyder 2015-06-21 21:01:02 -04:00
parent 00759f777e
commit dc6b085d8b
2 changed files with 10 additions and 12 deletions

View File

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

View File

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