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
This commit is contained in:
Dominik Riebeling 2011-12-08 21:59:13 +00:00
parent d2c1ece304
commit 5ffd2f7598
3 changed files with 10 additions and 3 deletions

View File

@ -23,9 +23,14 @@
#define __IPODIO_H
#include <stdint.h>
#if !defined(_WIN32)
#include <unistd.h>
#elif defined(_MSC_VER)
/* MSVC uses a different name for ssize_t */
#define ssize_t SSIZE_T
#endif
#ifdef __WIN32__
#if defined(__WIN32__) || defined(_WIN32)
#include <windows.h>
#else
#define HANDLE int

View File

@ -139,7 +139,7 @@ void BootloaderInstallBase::downloadBlFinish(bool error)
void BootloaderInstallBase::installBlfile(void)
{
qDebug() << "[BootloaderInstallBase]" << __func__;
qDebug() << "[BootloaderInstallBase] installBlFile(void)";
}

View File

@ -23,7 +23,9 @@
#define __SANSAIO_H
#include <stdint.h>
#include <unistd.h>
#if !defined(_MSC_VER)
#include <unistd.h> /* not available on MSVC */
#endif
#if defined(__WIN32__) || defined(_WIN32)
#include <windows.h>