Unify DLL import/export constants with wxWidgets

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2021-11-30 12:02:41 +01:00
parent dde7026aec
commit 5c50d5305c
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@
<PropertyGroup />
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>WXEXTEND_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<PreprocessorDefinitions>WXMAKINGDLL_WXEXTEND;WXUSINGDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup>

View File

@ -48,9 +48,9 @@
/// Public function calling convention
///
#ifndef WXEXTEND_API
#if defined(WXEXTEND_DLL)
#if defined(WXMAKINGDLL_WXEXTEND)
#define WXEXTEND_API __declspec(dllexport)
#elif defined(WXEXTEND_DLLIMP)
#elif defined(WXUSINGDLL)
#define WXEXTEND_API __declspec(dllimport)
#else
#define WXEXTEND_API