summaryrefslogtreecommitdiffstats
path: root/rbutil/ipodpatcher/ipodio-posix.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-posix.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-posix.c')
-rw-r--r--rbutil/ipodpatcher/ipodio-posix.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/rbutil/ipodpatcher/ipodio-posix.c b/rbutil/ipodpatcher/ipodio-posix.c
index db8648e70e..8d43de2d60 100644
--- a/rbutil/ipodpatcher/ipodio-posix.c
+++ b/rbutil/ipodpatcher/ipodio-posix.c
@@ -19,6 +19,7 @@
*
****************************************************************************/
+#if !defined(_WIN32) /* all non-Windows platforms are considered POSIX. */
#include <stdio.h>
#include <unistd.h>
@@ -388,3 +389,5 @@ ssize_t ipod_write(struct ipod_t* ipod, unsigned char* buf, int nbytes)
return write(ipod->dh, buf, nbytes);
}
+#endif
+