diff options
Diffstat (limited to 'rbutil/sansapatcher')
-rw-r--r-- | rbutil/sansapatcher/sansapatcher.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rbutil/sansapatcher/sansapatcher.h b/rbutil/sansapatcher/sansapatcher.h index 4f08eea432..80cef4d417 100644 --- a/rbutil/sansapatcher/sansapatcher.h +++ b/rbutil/sansapatcher/sansapatcher.h | |||
@@ -32,7 +32,15 @@ extern int sansa_verbose; | |||
32 | /* Size of buffer for disk I/O - 8MB is large enough for any version | 32 | /* Size of buffer for disk I/O - 8MB is large enough for any version |
33 | of the Apple firmware, but not the Nano's RSRC image. */ | 33 | of the Apple firmware, but not the Nano's RSRC image. */ |
34 | #define BUFFER_SIZE 8*1024*1024 | 34 | #define BUFFER_SIZE 8*1024*1024 |
35 | #ifndef _MSC_VER | ||
35 | extern unsigned char* sansa_sectorbuf; | 36 | extern unsigned char* sansa_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* sansa_sectorbuf; | ||
43 | #endif | ||
36 | 44 | ||
37 | int sansa_read_partinfo(struct sansa_t* sansa, int silent); | 45 | int sansa_read_partinfo(struct sansa_t* sansa, int silent); |
38 | int is_sansa(struct sansa_t* sansa); | 46 | int is_sansa(struct sansa_t* sansa); |