1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Dominik Riebeling 2011-12-04 19:40:35 +00:00
parent a43df152c2
commit 38890ac6dc
3 changed files with 14 additions and 1 deletions

View file

@ -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