summaryrefslogtreecommitdiffstats
path: root/rbutil/ipodpatcher/ipodio-win32.c
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-12-07 20:06:48 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-12-07 20:06:48 +0000
commite23adb538652ae500ea33677b80bb8e14775eff8 (patch)
tree740bc33d811bc1bb5eb24ea8183c3ecb189a7852 /rbutil/ipodpatcher/ipodio-win32.c
parentf83a3d0ac4df41f588b395ea445a3f33c5cb136a (diff)
downloadrockbox-e23adb538652ae500ea33677b80bb8e14775eff8.tar.gz
rockbox-e23adb538652ae500ea33677b80bb8e14775eff8.tar.bz2
rockbox-e23adb538652ae500ea33677b80bb8e14775eff8.zip
ipodpatcher: 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 libipodpatcher. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31169 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/ipodpatcher/ipodio-win32.c')
-rw-r--r--rbutil/ipodpatcher/ipodio-win32.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/ipodpatcher/ipodio-win32.c b/rbutil/ipodpatcher/ipodio-win32.c
index abf7bdf46e..27c1b24f01 100644
--- a/rbutil/ipodpatcher/ipodio-win32.c
+++ b/rbutil/ipodpatcher/ipodio-win32.c
@@ -25,6 +25,8 @@
*
****************************************************************************/
+#if defined(_WIN32)
+
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
@@ -201,3 +203,5 @@ ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes)
return count;
}
+#endif
+