From 82760295b171fe4017715a66a4804dd0773511dc Mon Sep 17 00:00:00 2001 From: AchimTuran Date: Sat, 24 Jun 2017 09:31:33 +0200 Subject: [PATCH] [addon] well..., in Windows ew always have the trouble with their crappy macro definition, so lets undef CreateDirectory for the first step :-( --- src/addon.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/addon.cpp b/src/addon.cpp index 6a358ed..7c90d59 100644 --- a/src/addon.cpp +++ b/src/addon.cpp @@ -32,6 +32,10 @@ using namespace std; CDSPProcess_FreeSurround *g_usedDSPs[AE_DSP_STREAM_MAX_STREAMS]; +#if defined(TARGET_WINDOWS) +#undef CreateDirectory +#endif + class CFreeSurroundAddon : public kodi::addon::CAddonBase, public kodi::addon::CInstanceAudioDSP @@ -40,7 +44,6 @@ class CFreeSurroundAddon CFreeSurroundAddon(); virtual ~CFreeSurroundAddon(); - virtual ADDON_STATUS Create() override; virtual void GetCapabilities(AE_DSP_ADDON_CAPABILITIES& capabilities) override; virtual std::string GetDSPName() override { return "Free Surround Processor"; } virtual std::string GetDSPVersion() override { return FREESURROUND_VERSION; };