summaryrefslogtreecommitdiffstats
path: root/rbutil/sansapatcher/sansaio-win32.c
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-12-04 19:40:35 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-12-04 19:40:35 +0000
commit38890ac6dc1e3cebb90e60d70cea8da8009ee8da (patch)
tree47ac7a259bf7dcd2785170e903695598aa6ccad4 /rbutil/sansapatcher/sansaio-win32.c
parenta43df152c2adf737208bbeb294a0a13608d3cc43 (diff)
downloadrockbox-38890ac6dc1e3cebb90e60d70cea8da8009ee8da.tar.gz
rockbox-38890ac6dc1e3cebb90e60d70cea8da8009ee8da.zip
sansapatcher: guard platform specific files.
Use the preprocessor to make platform specific files compile as empty files if built for a different platform. This removes the need to distinguish in the Makefile and simplifies creating a libsansapatcher. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31143 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/sansapatcher/sansaio-win32.c')
-rw-r--r--rbutil/sansapatcher/sansaio-win32.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/sansapatcher/sansaio-win32.c b/rbutil/sansapatcher/sansaio-win32.c
index 5797eae2aa..196ee1c636 100644
--- a/rbutil/sansapatcher/sansaio-win32.c
+++ b/rbutil/sansapatcher/sansaio-win32.c
@@ -25,6 +25,7 @@
*
****************************************************************************/
+#if defined(_WIN32)
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
@@ -199,3 +200,5 @@ int sansa_write(struct sansa_t* sansa, unsigned char* buf, int nbytes)
return count;
}
+#endif
+