diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-12-08 21:59:13 +0000 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2011-12-08 21:59:13 +0000 |
commit | 5ffd2f759847cf52ff728605ac964e80cee70bff (patch) | |
tree | 3300b74e98375b50324acba01411fcd0322ee125 /rbutil/sansapatcher/sansaio.h | |
parent | d2c1ece304d0a9eb1a29401ee24b889aea1bff8c (diff) | |
download | rockbox-5ffd2f759847cf52ff728605ac964e80cee70bff.tar.gz rockbox-5ffd2f759847cf52ff728605ac964e80cee70bff.zip |
Various adjustments for MSVC.
- MSVC uses different namings in some places. Adjust the sources via the
preprocessor if build with MSVC.
- MSVC doesn't know about __func__, use name instead.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31185 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil/sansapatcher/sansaio.h')
-rw-r--r-- | rbutil/sansapatcher/sansaio.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rbutil/sansapatcher/sansaio.h b/rbutil/sansapatcher/sansaio.h index d705c121b8..de25433765 100644 --- a/rbutil/sansapatcher/sansaio.h +++ b/rbutil/sansapatcher/sansaio.h | |||
@@ -23,7 +23,9 @@ | |||
23 | #define __SANSAIO_H | 23 | #define __SANSAIO_H |
24 | 24 | ||
25 | #include <stdint.h> | 25 | #include <stdint.h> |
26 | #include <unistd.h> | 26 | #if !defined(_MSC_VER) |
27 | #include <unistd.h> /* not available on MSVC */ | ||
28 | #endif | ||
27 | 29 | ||
28 | #if defined(__WIN32__) || defined(_WIN32) | 30 | #if defined(__WIN32__) || defined(_WIN32) |
29 | #include <windows.h> | 31 | #include <windows.h> |