diff options
author | Berke Viktor <bviktor@hexchat.org> | 2012-11-11 18:26:31 +0100 |
---|---|---|
committer | Berke Viktor <bviktor@hexchat.org> | 2012-11-11 18:26:31 +0100 |
commit | 39b797b7bbb452bc3fc0b4b6af30b7f7fe13304a (patch) | |
tree | 40623a6678d88e17331585074d44355fa1cf98ff /plugins | |
parent | 82694d2d29f6fbe5d72dbfec1bf79fc51e109f57 (diff) |
Fix WMPA compilation without the WDK
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/wmpa/hexchat-plugin.cpp | 2 | ||||
-rw-r--r-- | plugins/wmpa/wmpa.vcxproj | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/wmpa/hexchat-plugin.cpp b/plugins/wmpa/hexchat-plugin.cpp index 956218d2..7b8c2753 100644 --- a/plugins/wmpa/hexchat-plugin.cpp +++ b/plugins/wmpa/hexchat-plugin.cpp @@ -472,7 +472,7 @@ CString wmpaGetSongTitle(void) CWMPMedia media = wmp->GetCurrentMedia(); if (media == NULL) { hexchat_printf(ph, "WMPA: Could not get current media"); - return(HEXCHAT_EAT_ALL); + return(CString ("%d", HEXCHAT_EAT_ALL)); } CString artist = media.getItemInfo("Artist"); diff --git a/plugins/wmpa/wmpa.vcxproj b/plugins/wmpa/wmpa.vcxproj index 0e5db7dc..5698f5cd 100644 --- a/plugins/wmpa/wmpa.vcxproj +++ b/plugins/wmpa/wmpa.vcxproj @@ -60,7 +60,7 @@ <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> - <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;WMPA_EXPORTS;_AFXDLL;_AFX_NO_DAO_SUPPORT;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;WMPA_EXPORTS;_AFXDLL;_AFX_NO_DAO_SUPPORT;_WIN32_WINNT=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions> <MultiProcessorCompilation>false</MultiProcessorCompilation> </ClCompile> <Link> @@ -80,7 +80,7 @@ <Optimization>MaxSpeed</Optimization> <FunctionLevelLinking>true</FunctionLevelLinking> <IntrinsicFunctions>true</IntrinsicFunctions> - <PreprocessorDefinitions>WIN32;_WIN64;_AMD64_;NDEBUG;_WINDOWS;_USRDLL;WMPA_EXPORTS;_AFXDLL;_AFX_NO_DAO_SUPPORT;%(PreprocessorDefinitions)</PreprocessorDefinitions> + <PreprocessorDefinitions>WIN32;_WIN64;_AMD64_;NDEBUG;_WINDOWS;_USRDLL;WMPA_EXPORTS;_AFXDLL;_AFX_NO_DAO_SUPPORT;_WIN32_WINNT=0x0501;%(PreprocessorDefinitions)</PreprocessorDefinitions> <MultiProcessorCompilation>false</MultiProcessorCompilation> </ClCompile> <Link> |