mirror of
https://github.com/verilator/verilator.git
synced 2025-05-03 22:16:53 +00:00
Fix duplicate __STDC_FORMAT_MACROS definition.
This commit is contained in:
parent
8319ea6c73
commit
23eb96579c
@ -223,9 +223,12 @@
|
|||||||
|
|
||||||
#ifdef __MINGW32__
|
#ifdef __MINGW32__
|
||||||
# define __USE_MINGW_ANSI_STDIO 1 // Force old MinGW (GCC 5 and older) to use C99 formats
|
# 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
|
#endif
|
||||||
|
|
||||||
|
// The inttypes supplied with some GCC & MINGW32 versions requires STDC_FORMAT_MACROS
|
||||||
|
// to be declared in order to get the PRIxx macros used by fstapi.c
|
||||||
|
#define __STDC_FORMAT_MACROS
|
||||||
|
|
||||||
#if defined(__CYGWIN__)
|
#if defined(__CYGWIN__)
|
||||||
|
|
||||||
# include <stdint.h>
|
# include <stdint.h>
|
||||||
@ -273,10 +276,6 @@ typedef signed __int32 ssize_t; ///< signed size_t; returned fro
|
|||||||
|
|
||||||
#else // Linux or compliant Unix flavors, -m64
|
#else // Linux or compliant Unix flavors, -m64
|
||||||
|
|
||||||
// The inttypes supplied with some GCC versions requires STDC_FORMAT_MACROS
|
|
||||||
// to be declared in order to get the PRIxx macros used by fstapi.c
|
|
||||||
#define __STDC_FORMAT_MACROS
|
|
||||||
|
|
||||||
# include <inttypes.h> // Solaris
|
# include <inttypes.h> // Solaris
|
||||||
# include <stdint.h> // Linux and most flavors
|
# include <stdint.h> // Linux and most flavors
|
||||||
# include <sys/types.h> // __WORDSIZE
|
# include <sys/types.h> // __WORDSIZE
|
||||||
|
Loading…
Reference in New Issue
Block a user