diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-06-08 18:04:10 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2009-06-08 18:04:10 +0000 |
commit | eebde2a3676f7dd11011fabd7c4d74f0cb6532d5 (patch) | |
tree | c8568e4f398f5a1e2fcfc1c937dbbbc18d0f1aeb /utils/MTP/beastpatcher/mtp_common.h | |
parent | 5575f425d64b555ad2399ef6e4ae3d1efcb6627d (diff) | |
download | rockbox-eebde2a3676f7dd11011fabd7c4d74f0cb6532d5.tar.gz rockbox-eebde2a3676f7dd11011fabd7c4d74f0cb6532d5.zip |
Major W32 beastpatcher rework (FS#10220).
Update beastpatcher to scan for the device separately, rework MTP_DLL and modify to allow building with VS2005.
- include pstdint.h when building with VS2005 as VS doesn't have inttypes.h
- don't use bool in the DLL as VS doesn't support type bool in C.
- rearrange DLL files to avoid filename ambiguities with sendfirm.
- include MTP_DLL.h instead of duplicating prototypes. Adjust header for easy inclusion.
- make MTP_DLL project file also copy the resulting dll to MTP folder for convenience.
- extend MTP_DLL API for separate device scanning. Note that this (intentionally) breaks compatibility of the dll.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21221 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'utils/MTP/beastpatcher/mtp_common.h')
-rw-r--r-- | utils/MTP/beastpatcher/mtp_common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/MTP/beastpatcher/mtp_common.h b/utils/MTP/beastpatcher/mtp_common.h index 5f7de3983b..4b60fa08da 100644 --- a/utils/MTP/beastpatcher/mtp_common.h +++ b/utils/MTP/beastpatcher/mtp_common.h | |||
@@ -40,7 +40,7 @@ | |||
40 | #ifndef _MTP_COMMON_H | 40 | #ifndef _MTP_COMMON_H |
41 | #define _MTP_COMMON_H | 41 | #define _MTP_COMMON_H |
42 | 42 | ||
43 | #ifdef __WIN32__ | 43 | #if defined(__WIN32__) || defined(_WIN32) |
44 | #else | 44 | #else |
45 | #include "libmtp.h" | 45 | #include "libmtp.h" |
46 | #endif | 46 | #endif |
@@ -53,7 +53,7 @@ struct mtp_info_t | |||
53 | char version[200]; | 53 | char version[200]; |
54 | 54 | ||
55 | /* OS-Specific data */ | 55 | /* OS-Specific data */ |
56 | #ifdef __WIN32__ | 56 | #if defined(__WIN32__) || defined(_WIN32) |
57 | #else | 57 | #else |
58 | LIBMTP_mtpdevice_t *device; | 58 | LIBMTP_mtpdevice_t *device; |
59 | #endif | 59 | #endif |