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:
parent
d2c1ece304
commit
5ffd2f7598
|
@ -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
|
||||
|
|
|
@ -139,7 +139,7 @@ void BootloaderInstallBase::downloadBlFinish(bool error)
|
|||
|
||||
void BootloaderInstallBase::installBlfile(void)
|
||||
{
|
||||
qDebug() << "[BootloaderInstallBase]" << __func__;
|
||||
qDebug() << "[BootloaderInstallBase] installBlFile(void)";
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue