//Copyright 2020 Siemens Digital Industries Software //================================================== //Copyright $2020. //Siemens Product Lifecycle Management Software Inc. //All Rights Reserved. //================================================== //Copyright 2020 Siemens Digital Industries Software /** @file This file contains the declaration for the Dispatch Library cfm */ #include #ifdef EXPORTLIBRARY #define EXPORTLIBRARY something else #error ExportLibrary was already defined #endif #define EXPORTLIBRARY libcfm #if !defined(LIBCFM) && !defined(IPLIB) # error IPLIB or LIBCFM is not defined #endif /* Handwritten code should use CFM_API, not CFMEXPORT */ #define CFM_API CFMEXPORT #if IPLIB==libcfm || defined(LIBCFM) # if defined(__lint) # define CFMEXPORT __export(cfm) # define CFMGLOBAL extern __global(cfm) # define CFMPRIVATE extern __private(cfm) # elif defined(_WIN32) # define CFMEXPORT __declspec(dllexport) # define CFMGLOBAL extern __declspec(dllexport) # define CFMPRIVATE extern # else # define CFMEXPORT # define CFMGLOBAL extern # define CFMPRIVATE extern # endif #else # if defined(__lint) # define CFMEXPORT __export(cfm) # define CFMGLOBAL extern __global(cfm) # elif defined(_WIN32) && !defined(WNT_STATIC_LINK) # define CFMEXPORT __declspec(dllimport) # define CFMGLOBAL extern __declspec(dllimport) # else # define CFMEXPORT # define CFMGLOBAL extern # endif #endif