Improve MSVC support. Better binary compatibility.

Patch by Patrick Spendrin from KDE.
This commit is contained in:
Andreas Schneider
2009-11-06 09:57:09 +01:00
parent ab0d8a3828
commit fa27956daf
2 changed files with 2 additions and 2 deletions

View File

@@ -54,7 +54,7 @@
typedef unsigned short uint16_t;
typedef unsigned char uint8_t;
typedef unsigned long long uint64_t;
typedef uint32_t mode_t;
typedef int mode_t;
#else /* _MSC_VER */
#include <unistd.h>
#include <inttypes.h>

View File

@@ -56,7 +56,7 @@ extern "C" {
#endif /* gid_t */
#ifdef _MSC_VER
#ifndef ssize_t
typedef _W64 signed int ssize_t;
typedef _W64 SSIZE_T ssize_t;
#endif /* ssize_t */
#endif /* _MSC_VER */
#endif /* _WIN32 */