mirror of
https://github.com/php/php-src.git
synced 2025-08-16 22:18:50 +02:00
MFT: VC10 build support
This commit is contained in:
parent
0f0f5f229b
commit
1063c8346b
6 changed files with 33 additions and 10 deletions
|
@ -41,6 +41,12 @@
|
||||||
# include "php_sockets.h"
|
# include "php_sockets.h"
|
||||||
# include "win32/sockets.h"
|
# include "win32/sockets.h"
|
||||||
# define IS_INVALID_SOCKET(a) (a->bsd_socket == INVALID_SOCKET)
|
# define IS_INVALID_SOCKET(a) (a->bsd_socket == INVALID_SOCKET)
|
||||||
|
# ifdef EPROTONOSUPPORT
|
||||||
|
# undef EPROTONOSUPPORT
|
||||||
|
# endif
|
||||||
|
# ifdef ECONNRESET
|
||||||
|
# undef ECONNRESET
|
||||||
|
# endif
|
||||||
# define EPROTONOSUPPORT WSAEPROTONOSUPPORT
|
# define EPROTONOSUPPORT WSAEPROTONOSUPPORT
|
||||||
# define ECONNRESET WSAECONNRESET
|
# define ECONNRESET WSAECONNRESET
|
||||||
# ifdef errno
|
# ifdef errno
|
||||||
|
|
|
@ -42,6 +42,9 @@ PHPAPI int flock(int fd, int operation);
|
||||||
#define PHP_LOCK_NB 4
|
#define PHP_LOCK_NB 4
|
||||||
|
|
||||||
#ifdef PHP_WIN32
|
#ifdef PHP_WIN32
|
||||||
|
# ifdef EWOULDBLOCK
|
||||||
|
# undef EWOULDBLOCK
|
||||||
|
# endif
|
||||||
# define EWOULDBLOCK WSAEWOULDBLOCK
|
# define EWOULDBLOCK WSAEWOULDBLOCK
|
||||||
# define fsync _commit
|
# define fsync _commit
|
||||||
# define ftruncate(a, b) chsize(a, b)
|
# define ftruncate(a, b) chsize(a, b)
|
||||||
|
|
|
@ -34,6 +34,12 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef PHP_WIN32
|
#ifdef PHP_WIN32
|
||||||
|
# ifdef EWOULDBLOCK
|
||||||
|
# undef EWOULDBLOCK
|
||||||
|
# endif
|
||||||
|
# ifdef EINPROGRESS
|
||||||
|
# undef EINPROGRESS
|
||||||
|
# endif
|
||||||
# define EWOULDBLOCK WSAEWOULDBLOCK
|
# define EWOULDBLOCK WSAEWOULDBLOCK
|
||||||
# define EINPROGRESS WSAEWOULDBLOCK
|
# define EINPROGRESS WSAEWOULDBLOCK
|
||||||
# define fsync _commit
|
# define fsync _commit
|
||||||
|
|
|
@ -49,6 +49,9 @@
|
||||||
#define CHUNK_SIZE 8192
|
#define CHUNK_SIZE 8192
|
||||||
|
|
||||||
#ifdef PHP_WIN32
|
#ifdef PHP_WIN32
|
||||||
|
# ifdef EWOULDBLOCK
|
||||||
|
# undef EWOULDBLOCK
|
||||||
|
# endif
|
||||||
# define EWOULDBLOCK WSAEWOULDBLOCK
|
# define EWOULDBLOCK WSAEWOULDBLOCK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -148,7 +148,7 @@ if (VCVERS >= 1400) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ARG_WITH('mp', 'Tell VC9 use up to [n,auto,disable] processes for compilation', 'auto');
|
ARG_WITH('mp', 'Tell VC9+ use up to [n,auto,disable] processes for compilation', 'auto');
|
||||||
if (VCVERS >= 1500 && PHP_MP != 'disable') {
|
if (VCVERS >= 1500 && PHP_MP != 'disable') {
|
||||||
// no from disable-all
|
// no from disable-all
|
||||||
if(PHP_MP == 'auto' || PHP_MP == 'no') {
|
if(PHP_MP == 'auto' || PHP_MP == 'no') {
|
||||||
|
|
|
@ -238,7 +238,12 @@ typedef uint64_t uintmax_t;
|
||||||
#define INTMAX_C INT64_C
|
#define INTMAX_C INT64_C
|
||||||
#define UINTMAX_C UINT64_C
|
#define UINTMAX_C UINT64_C
|
||||||
|
|
||||||
static __inline int64_t llabs( int64_t i ) { return i >= 0? i: -i; }
|
#if _MSC_VER < 1600
|
||||||
|
static __inline int64_t llabs(int64_t i)
|
||||||
|
{
|
||||||
|
return i >= 0 ? i: -i;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // __STDC_CONSTANT_MACROS ]
|
#endif // __STDC_CONSTANT_MACROS ]
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue