summaryrefslogtreecommitdiff
path: root/rbutil/ipodpatcher/ipodpatcher.h
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/ipodpatcher/ipodpatcher.h')
-rw-r--r--rbutil/ipodpatcher/ipodpatcher.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/rbutil/ipodpatcher/ipodpatcher.h b/rbutil/ipodpatcher/ipodpatcher.h
index 5d2507ccd4..30a1b1e9fd 100644
--- a/rbutil/ipodpatcher/ipodpatcher.h
+++ b/rbutil/ipodpatcher/ipodpatcher.h
@@ -31,7 +31,17 @@ extern "C" {
31/* Size of buffer for disk I/O - 8MB is large enough for any version 31/* Size of buffer for disk I/O - 8MB is large enough for any version
32 of the Apple firmware, but not the Nano's RSRC image. */ 32 of the Apple firmware, but not the Nano's RSRC image. */
33#define BUFFER_SIZE 8*1024*1024 33#define BUFFER_SIZE 8*1024*1024
34
35#ifndef _MSC_VER
34extern unsigned char* ipod_sectorbuf; 36extern unsigned char* ipod_sectorbuf;
37#else
38/* MSVC needs to use dllimport to allow using it directly from a DLL.
39 * See http://support.microsoft.com/kb/90530
40 * Building with MSVC is only when using as DLL.
41 */
42_declspec(dllimport) unsigned char* ipod_sectorbuf;
43#endif
44
35extern int ipod_verbose; 45extern int ipod_verbose;
36 46
37#define FILETYPE_DOT_IPOD 0 47#define FILETYPE_DOT_IPOD 0