Project

General

Profile

[logo] 
 
Home
About/Contact
Major Tools
  Dinotrace
  Verilator
  Verilog-mode
  Verilog-Perl
Other Tools
  IPC::Locker
  Parallel::Forker
  Voneline
General Info
  Papers

verilatedos.h.patch

verilatedos.h patch file - Richard Myers, 06/11/2019 06:18 AM

Download (1.45 KB)

View differences:

verilatedos.h 2019-06-10 23:07:04.413575695 -0700
198 198
//=========================================================================
199 199
// Basic integer types
200 200

  
201
// Use Microsoft-specific format specifiers for Microsoft Visual C++ only
202
#ifdef _MSC_VER
203
# define VL_PRI64 "I64"
204
#else  // use standard C99 format specifiers
205
# ifdef __MINGW32__
206
#  define __USE_MINGW_ANSI_STDIO 1  // Force old MinGW (GCC 5 and older) to use C99 formats
207
#  define __STDC_FORMAT_MACROS   1  // Otherwise MinGW doesn't get PRId64 for fstapi.c
208
# endif
209
# if defined(__WORDSIZE) && (__WORDSIZE == 64)
210
#  define VL_PRI64 "l"
211
# else
212
#  define VL_PRI64 "ll"
213
# endif
214
#endif
215

  
201 216
#if defined(__CYGWIN__)
202 217

  
203 218
# include <stdint.h>
......
266 281
// Printing printf/scanf formats
267 282
// Alas cinttypes isn't that standard yet
268 283

  
269
// Use Microsoft-specific format specifiers for Microsoft Visual C++ only
270
#ifdef _MSC_VER
271
# define VL_PRI64 "I64"
272
#else  // use standard C99 format specifiers
273
# ifdef __MINGW32__
274
#  define __USE_MINGW_ANSI_STDIO 1  // Force old MinGW (GCC 5 and older) to use C99 formats
275
#  define __STDC_FORMAT_MACROS   1  // Otherwise MinGW doesn't get PRId64 for fstapi.c
276
# endif
277
# if defined(__WORDSIZE) && (__WORDSIZE == 64)
278
#  define VL_PRI64 "l"
279
# else
280
#  define VL_PRI64 "ll"
281
# endif
282
#endif
283

  
284 284
#if defined(_WIN32) && defined(_MSC_VER)
285 285
# if (_MSC_VER < 1900)
286 286
#  define VL_SNPRINTF _snprintf