mirror of
https://github.com/php/php-src.git
synced 2026-04-29 03:03:26 +02:00
Fixes for building with vs.net 2005.
This commit is contained in:
+3
-1
@@ -46,7 +46,9 @@ typedef char * caddr_t;
|
||||
#define rmdir(a) _rmdir(a)
|
||||
#define getpid _getpid
|
||||
#define php_sleep(t) Sleep(t*1000)
|
||||
#define getcwd(a, b) _getcwd(a, b)
|
||||
#ifndef getcwd
|
||||
# define getcwd(a, b) _getcwd(a, b)
|
||||
#endif
|
||||
#define off_t _off_t
|
||||
typedef unsigned int uint;
|
||||
typedef unsigned long ulong;
|
||||
|
||||
@@ -97,8 +97,9 @@ if (VCVERS < 14) {
|
||||
|
||||
if (VCVERS >= 14) {
|
||||
// fun stuff: MS deprecated ANSI stdio and similar functions
|
||||
// disable annoying warnings
|
||||
ADD_FLAG('CFLAGS', ' /wd4996 ');
|
||||
// disable annoying warnings. In addition, time_t defaults
|
||||
// to 64-bit. Ask for 32-bit.
|
||||
ADD_FLAG('CFLAGS', ' /wd4996 /D_USE_32BIT_TIME_T=1 ');
|
||||
|
||||
if (PHP_DEBUG == "yes") {
|
||||
// Set some debug/release specific options
|
||||
|
||||
@@ -142,3 +142,10 @@
|
||||
#undef HAVE_ATOF_ACCEPTS_NAN
|
||||
#undef HAVE_ATOF_ACCEPTS_INF
|
||||
#define HAVE_HUGE_VAL_NAN 1
|
||||
|
||||
/* vs.net 2005 has a 64-bit time_t. This will likely break
|
||||
* 3rdParty libs that were built with older compilers; switch
|
||||
* back to 32-bit */
|
||||
#define _USE_32BIT_TIME_T 1
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user