8 Jan 2012 20:51
bluebrother: r31640 - in trunk/rbutil: ipodpatcher sansapatcher
<mailer <at> svn.rockbox.org>
2012-01-08 19:51:11 GMT
2012-01-08 19:51:11 GMT
Date: 2012-01-08 20:51:11 +0100 (Sun, 08 Jan 2012)
New Revision: 31640
Log Message:
MSVC compatibility adjustments.
When using a global variable from a DLL with MSVC special handling is necessary
to avoid going through additional redirection.
Modified:
trunk/rbutil/ipodpatcher/ipodpatcher.h
trunk/rbutil/sansapatcher/sansapatcher.h
Modified: trunk/rbutil/ipodpatcher/ipodpatcher.h
===================================================================
--- trunk/rbutil/ipodpatcher/ipodpatcher.h 2012-01-08 17:59:52 UTC (rev 31639)
+++ trunk/rbutil/ipodpatcher/ipodpatcher.h 2012-01-08 19:51:11 UTC (rev 31640)
<at> <at> -31,7 +31,17 <at> <at>
/* 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* ipod_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* ipod_sectorbuf;
(Continue reading)
RSS Feed