From d87648c2585aa5e6a566546e072a822d86d6bdd4 Mon Sep 17 00:00:00 2001 From: Matthew Ballance Date: Mon, 20 Jan 2020 17:33:40 -0500 Subject: [PATCH] Correct FST-support issue with some GCC versions. Closes #2129. --- include/verilatedos.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/verilatedos.h b/include/verilatedos.h index fa1811321..4a09fb646 100644 --- a/include/verilatedos.h +++ b/include/verilatedos.h @@ -269,6 +269,10 @@ typedef signed __int32 ssize_t; ///< signed size_t; returned fro #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 // Solaris # include // Linux and most flavors # include // __WORDSIZE