From 3ba9e945d78f53c9346b62d467b02e4e95e1c309 Mon Sep 17 00:00:00 2001 From: Cary R Date: Wed, 17 Sep 2008 10:44:29 -0700 Subject: [PATCH] Fix MinGW to us _snprintf in tgt-vvp/vvp_process.c We need consistent pointer output (%p) and under MinGW we need to us _snprintf instead of snprintf to get this. The recent event control addition missed this. This has been reported to the MinGW developers and they are working on a solution. --- tgt-vvp/vvp_process.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tgt-vvp/vvp_process.c b/tgt-vvp/vvp_process.c index 14fba22e6..990b89d02 100644 --- a/tgt-vvp/vvp_process.c +++ b/tgt-vvp/vvp_process.c @@ -25,6 +25,10 @@ #endif # include +#ifdef __MINGW32__ /* MinGW has inconsistent %p output. */ +#define snprintf _snprintf +#endif + static int show_statement(ivl_statement_t net, ivl_scope_t sscope); unsigned local_count = 0;