don't include unistd.h in msvc builds

add some x64 declarations from wine to port.h

svn path=/trunk/; revision=32566
This commit is contained in:
Christoph von Wittich 2008-03-05 08:06:17 +00:00
parent d3ea26544a
commit 68844e0d8e
2 changed files with 10 additions and 0 deletions

View file

@ -780,7 +780,9 @@
/* #undef HAVE_UNICODE_UBIDI_H */ /* #undef HAVE_UNICODE_UBIDI_H */
/* Define to 1 if you have the <unistd.h> header file. */ /* Define to 1 if you have the <unistd.h> header file. */
#if !defined(_MSC_VER)
#define HAVE_UNISTD_H 1 #define HAVE_UNISTD_H 1
#endif
/* Define to 1 if you have the `usleep' function. */ /* Define to 1 if you have the `usleep' function. */
/* #undef HAVE_USLEEP */ /* #undef HAVE_USLEEP */

View file

@ -49,6 +49,14 @@
* Type definitions * Type definitions
*/ */
#if !defined(_MSC_VER) && !defined(__int64)
# if defined(__x86_64__) || defined(_WIN64)
# define __int64 long
# else
# define __int64 long long
# endif
#endif
#ifndef HAVE_MODE_T #ifndef HAVE_MODE_T
typedef int mode_t; typedef int mode_t;
#endif #endif