From 0e8ce59022295d004fb41f0e7d8239bdf69276c7 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Mon, 5 Nov 2012 10:22:19 -0500 Subject: [PATCH] Fix svdpi compile issue on MSVCC, bug571. --- Changes | 3 +++ include/vltstd/svdpi.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Changes b/Changes index 19ff68885..cf424e061 100644 --- a/Changes +++ b/Changes @@ -5,6 +5,9 @@ indicates the contributor was also the author of the fix; Thanks! * Verilator 3.84** devel +**** Fix svdpi compile issue on MSVCC, bug571. [Amir Gonnen] + + * Verilator 3.842 2012/11/03 diff --git a/include/vltstd/svdpi.h b/include/vltstd/svdpi.h index e25c2f7f8..4a8af229f 100644 --- a/include/vltstd/svdpi.h +++ b/include/vltstd/svdpi.h @@ -36,18 +36,22 @@ typedef signed __int8 int8_t; #endif /* Use to export a symbol from application */ +#ifndef DPI_DLLISPEC #if defined (_MSC_VER) #define DPI_DLLISPEC __declspec(dllimport) #else #define DPI_DLLISPEC #endif +#endif /* Use to import a symbol into application */ +#ifndef DPI_DLLESPEC #if defined (_MSC_VER) #define DPI_DLLESPEC __declspec(dllexport) #else #define DPI_DLLESPEC #endif +#endif /* Use to mark a function as external */ #ifndef DPI_EXTERN