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 /> <PropertyGroup />
<ItemDefinitionGroup> <ItemDefinitionGroup>
<ClCompile> <ClCompile>
<PreprocessorDefinitions>WXEXTEND_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions> <PreprocessorDefinitions>WXMAKINGDLL_WXEXTEND;WXUSINGDLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile> </ClCompile>
</ItemDefinitionGroup> </ItemDefinitionGroup>
<ItemGroup> <ItemGroup>

View File

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