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/ipodpatcher | |
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/ipodpatcher')
-rw-r--r-- | rbutil/ipodpatcher/ipodio.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/rbutil/ipodpatcher/ipodio.h b/rbutil/ipodpatcher/ipodio.h index 6aa675535a..e08d74a785 100644 --- a/rbutil/ipodpatcher/ipodio.h +++ b/rbutil/ipodpatcher/ipodio.h | |||
@@ -23,9 +23,14 @@ | |||
23 | #define __IPODIO_H | 23 | #define __IPODIO_H |
24 | 24 | ||
25 | #include <stdint.h> | 25 | #include <stdint.h> |
26 | #if !defined(_WIN32) | ||
26 | #include <unistd.h> | 27 | #include <unistd.h> |
28 | #elif defined(_MSC_VER) | ||
29 | /* MSVC uses a different name for ssize_t */ | ||
30 | #define ssize_t SSIZE_T | ||
31 | #endif | ||
27 | 32 | ||
28 | #ifdef __WIN32__ | 33 | #if defined(__WIN32__) || defined(_WIN32) |
29 | #include <windows.h> | 34 | #include <windows.h> |
30 | #else | 35 | #else |
31 | #define HANDLE int | 36 | #define HANDLE int |