From 9c1ed84d28edfa4a2b5b0a327dccd83d1a1beef8 Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 23 Dec 2012 23:36:00 +0100 Subject: sansapatcher: move sectorbuf pointer into sansa_t structure. Similar as the ipod_t structure for ipodpatcher the sansa_t structure holds all relevant information for sansapatcher. Put the global sansa_sectorbuf pointer into it as well. Change-Id: Iad08ef6aafc49609c3d0d556914246f230ee0179 --- rbutil/sansapatcher/sansapatcher.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'rbutil/sansapatcher/sansapatcher.h') diff --git a/rbutil/sansapatcher/sansapatcher.h b/rbutil/sansapatcher/sansapatcher.h index 80cef4d417..1ae101e012 100644 --- a/rbutil/sansapatcher/sansapatcher.h +++ b/rbutil/sansapatcher/sansapatcher.h @@ -32,15 +32,6 @@ extern int sansa_verbose; /* Size of buffer for disk I/O - 8MB is large enough for any version of the Apple firmware, but not the Nano's RSRC image. */ #define BUFFER_SIZE 8*1024*1024 -#ifndef _MSC_VER -extern unsigned char* sansa_sectorbuf; -#else -/* MSVC needs to use dllimport to allow using it directly from a DLL. - * See http://support.microsoft.com/kb/90530 - * Building with MSVC is only when using as DLL. - */ -_declspec(dllimport) unsigned char* sansa_sectorbuf; -#endif int sansa_read_partinfo(struct sansa_t* sansa, int silent); int is_sansa(struct sansa_t* sansa); -- cgit v1.2.3