In Mantis 3022, they changed from WIN32 to _MSC_VER.
See http://www.eda.org/sv-cc/hm/4485.html.
Shalom
From: owner-sv-cc@eda.org [mailto:owner-sv-cc@eda.org] On Behalf Of Daniel Mlynek
Sent: Wednesday, October 26, 2011 10:05 AM
To: sv-cc@eda.org; Oleg Demchenko; Radoslaw Nawrot
Subject: [sv-cc] using _MSC_VER in svdpi.h
In svdpi.h there is :
/* Use to export a symbol from application */
#if defined (_MSC_VER)
#define DPI_DLLISPEC __declspec(dllimport)
#else
#define DPI_DLLISPEC
#endif
/* Use to import a symbol into application */
#if defined (_MSC_VER)
#define DPI_DLLESPEC __declspec(dllexport)
#else
#define DPI_DLLESPEC
#endif
This will cause that when compiling with MinGW on windows (which does not define _MSC_VER) functions using DPI_DLLISPEC will not be exported corectly.
For similar purpose in file vpi_user.h WIN32 macro is used instead _MSC_VER.
What is the reason of using _MSC_VER instead WIN32? Maybe WIN32 macro can/should be used also in svdpi.h?
DANiel
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.Received on Wed Oct 26 03:33:28 2011
This archive was generated by hypermail 2.1.8 : Wed Oct 26 2011 - 03:33:40 PDT