summaryrefslogtreecommitdiff
path: root/rbutil/sansapatcher/sansaio.h
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/sansapatcher/sansaio.h')
-rw-r--r--rbutil/sansapatcher/sansaio.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/rbutil/sansapatcher/sansaio.h b/rbutil/sansapatcher/sansaio.h
index 9563b572a7..d705c121b8 100644
--- a/rbutil/sansapatcher/sansaio.h
+++ b/rbutil/sansapatcher/sansaio.h
@@ -25,7 +25,7 @@
25#include <stdint.h> 25#include <stdint.h>
26#include <unistd.h> 26#include <unistd.h>
27 27
28#ifdef __WIN32__ 28#if defined(__WIN32__) || defined(_WIN32)
29#include <windows.h> 29#include <windows.h>
30#define loff_t int64_t 30#define loff_t int64_t
31#else 31#else
@@ -40,6 +40,10 @@
40 40
41#endif 41#endif
42 42
43#ifdef __cplusplus
44extern "C" {
45#endif
46
43struct sansa_partinfo_t { 47struct sansa_partinfo_t {
44 unsigned long start; /* first sector (LBA) */ 48 unsigned long start; /* first sector (LBA) */
45 unsigned long size; /* number of sectors */ 49 unsigned long size; /* number of sectors */
@@ -74,4 +78,7 @@ int sansa_read(struct sansa_t* sansa, unsigned char* buf, int nbytes);
74int sansa_write(struct sansa_t* sansa, unsigned char* buf, int nbytes); 78int sansa_write(struct sansa_t* sansa, unsigned char* buf, int nbytes);
75int sansa_alloc_buffer(unsigned char** sectorbuf, int bufsize); 79int sansa_alloc_buffer(unsigned char** sectorbuf, int bufsize);
76 80
81#ifdef __cplusplus
82}
83#endif
77#endif 84#endif