WXEXTEND_API is defined according to WXEXTEND_DLL and WXEXTEND_DLLIMP constants instead of WXEXTEND now

This commit is contained in:
Simon Rozman 2016-10-07 14:28:39 +02:00
parent 2fff163aea
commit a287e6e884
3 changed files with 10 additions and 9 deletions

View File

@ -8,9 +8,6 @@
<OutDir>..\..\..\output\$(Platform).$(Configuration)\</OutDir>
</PropertyGroup>
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>WXEXTEND;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
<POCompile>
<OutputFile>$(OutDir)..\locale\%(Filename)\$(ProjectName)$(wxExtendVersion).mo</OutputFile>
</POCompile>

View File

@ -5,6 +5,10 @@
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup />
<ItemDefinitionGroup />
<ItemDefinitionGroup>
<ClCompile>
<PreprocessorDefinitions>WXEXTEND_DLL;%(PreprocessorDefinitions)</PreprocessorDefinitions>
</ClCompile>
</ItemDefinitionGroup>
<ItemGroup />
</Project>

View File

@ -48,14 +48,14 @@
///
/// Public function calling convention
///
#ifdef WXEXTEND
#ifdef _WINDLL
#define WXEXTEND_API __declspec(dllexport)
#ifndef WXEXTEND_API
#if defined(WXEXTEND_DLL)
#define WXEXTEND_API __declspec(dllexport)
#elif defined(WXEXTEND_DLLIMP)
#define WXEXTEND_API __declspec(dllimport)
#else
#define WXEXTEND_API
#endif
#else
#define WXEXTEND_API __declspec(dllimport)
#endif