summaryrefslogtreecommitdiff
path: root/utils/MTP/MTP_DLL/mtp_wrapper.cpp
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2009-06-13 08:12:41 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2009-06-13 08:12:41 +0000
commitbc18818547da718e46efb107c3369add018aaa1d (patch)
tree64df93f065f3c847610f5cbdd472218497d54299 /utils/MTP/MTP_DLL/mtp_wrapper.cpp
parentb22e604a067790114ee32cbc49e7407182ba9863 (diff)
downloadrockbox-bc18818547da718e46efb107c3369add018aaa1d.zip
rockbox-bc18818547da718e46efb107c3369add018aaa1d.tar.gz
rockbox-bc18818547da718e46efb107c3369add018aaa1d.tar.bz2
rockbox-bc18818547da718e46efb107c3369add018aaa1d.tar.xz
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
Diffstat (limited to 'utils/MTP/MTP_DLL/mtp_wrapper.cpp')
-rw-r--r--utils/MTP/MTP_DLL/mtp_wrapper.cpp8
1 files changed, 3 insertions, 5 deletions
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 <windows.h>
#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
+}