From bc18818547da718e46efb107c3369add018aaa1d Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sat, 13 Jun 2009 08:12:41 +0000 Subject: Some more MTP_DLL cleanup. - don't use precompiled headers. - prepare for direct incorporation of the library. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21269 a1c6a512-1295-4272-9138-f99709370657 --- utils/MTP/MTP_DLL/mtp_wrapper.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'utils/MTP/MTP_DLL/mtp_wrapper.cpp') diff --git a/utils/MTP/MTP_DLL/mtp_wrapper.cpp b/utils/MTP/MTP_DLL/mtp_wrapper.cpp index f444a59..f3a05f3 100644 --- a/utils/MTP/MTP_DLL/mtp_wrapper.cpp +++ b/utils/MTP/MTP_DLL/mtp_wrapper.cpp @@ -31,8 +31,6 @@ */ -#include "stdafx.h" - #include #include "mswmdm_i.c" #include "mswmdm.h" @@ -120,7 +118,7 @@ static int mtp_close(struct mtp_if* mtp) return 0; } -__declspec(dllexport) int mtp_description(wchar_t* name, wchar_t* manufacturer, DWORD* version) +MTP_DLL_API int mtp_description(wchar_t* name, wchar_t* manufacturer, DWORD* version) { HRESULT hr; int num = 0; @@ -177,7 +175,7 @@ __declspec(dllexport) int mtp_description(wchar_t* name, wchar_t* manufacturer, return (num > 0) ? num : -1; } -__declspec(dllexport) int mtp_sendnk(LPWSTR file, int filesize, void (*callback)(unsigned int progress, unsigned int max)) +MTP_DLL_API int mtp_sendnk(LPWSTR file, int filesize, void (*callback)(unsigned int progress, unsigned int max)) { HRESULT hr; bool return_value = false; @@ -281,4 +279,4 @@ __declspec(dllexport) int mtp_sendnk(LPWSTR file, int filesize, void (*callback) return return_value ? 1 : 0; } -} \ No newline at end of file +} -- cgit v1.1