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
This commit is contained in:
Dominik Riebeling 2009-06-13 08:12:41 +00:00
parent b22e604a06
commit bc18818547
7 changed files with 11 additions and 62 deletions

View file

@ -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;
}
}
}