[sv-cc] using _MSC_VER in svdpi.h

From: Daniel Mlynek <danielm@aldec.com.pl>
Date: Wed Oct 26 2011 - 01:04:58 PDT

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

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Wed Oct 26 01:04:19 2011

This archive was generated by hypermail 2.1.8 : Wed Oct 26 2011 - 01:04:34 PDT