Back to index

php5  5.3.10
zend_config.w32.h
Go to the documentation of this file.
00001 /*
00002    +----------------------------------------------------------------------+
00003    | Zend Engine                                                          |
00004    +----------------------------------------------------------------------+
00005    | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) |
00006    +----------------------------------------------------------------------+
00007    | This source file is subject to version 2.00 of the Zend license,     |
00008    | that is bundled with this package in the file LICENSE, and is        |
00009    | available through the world-wide-web at the following url:           |
00010    | http://www.zend.com/license/2_00.txt.                                |
00011    | If you did not receive a copy of the Zend license and are unable to  |
00012    | obtain it through the world-wide-web, please send a note to          |
00013    | license@zend.com so we can mail you a copy immediately.              |
00014    +----------------------------------------------------------------------+
00015    | Authors: Andi Gutmans <andi@zend.com>                                |
00016    |          Zeev Suraski <zeev@zend.com>                                |
00017    +----------------------------------------------------------------------+
00018 */
00019 
00020 /* $Id: zend_config.w32.h 321634 2012-01-01 13:15:04Z felipe $ */
00021 
00022 #ifndef ZEND_CONFIG_W32_H
00023 #define ZEND_CONFIG_W32_H
00024 
00025 #include <../main/config.w32.h>
00026 
00027 #define _CRTDBG_MAP_ALLOC
00028 
00029 #include <malloc.h>
00030 #include <stdlib.h>
00031 #include <crtdbg.h>
00032 
00033 #include <string.h>
00034 
00035 #ifndef ZEND_INCLUDE_FULL_WINDOWS_HEADERS
00036 #define WIN32_LEAN_AND_MEAN
00037 #endif
00038 #include <winsock2.h>
00039 #include <windows.h>
00040 
00041 #include <float.h>
00042 
00043 typedef unsigned long ulong;
00044 typedef unsigned int uint;
00045 
00046 #define HAVE_STDIOSTR_H 1
00047 #define HAVE_CLASS_ISTDIOSTREAM
00048 #define istdiostream stdiostream
00049 
00050 #define snprintf _snprintf
00051 #if _MSC_VER < 1500
00052 #define vsnprintf _vsnprintf
00053 #endif
00054 #define strcasecmp(s1, s2) stricmp(s1, s2)
00055 #define strncasecmp(s1, s2, n) strnicmp(s1, s2, n)
00056 #define zend_isinf(a)       ((_fpclass(a) == _FPCLASS_PINF) || (_fpclass(a) == _FPCLASS_NINF))
00057 #define zend_finite(x)      _finite(x)
00058 #define zend_isnan(x)       _isnan(x)
00059 
00060 #define zend_sprintf sprintf
00061 
00062 /* This will cause the compilation process to be MUCH longer, but will generate
00063  * a much quicker PHP binary
00064  */
00065 #undef inline
00066 #ifdef ZEND_WIN32_FORCE_INLINE
00067 # define inline __forceinline
00068 #else
00069 # define inline
00070 #endif
00071 
00072 #ifdef LIBZEND_EXPORTS
00073 #      define ZEND_API __declspec(dllexport)
00074 #else
00075 #      define ZEND_API __declspec(dllimport)
00076 #endif
00077 
00078 #define ZEND_DLEXPORT              __declspec(dllexport)
00079 #define ZEND_DLIMPORT              __declspec(dllimport)
00080 
00081 /* 0x00200000L is MB_SERVICE_NOTIFICATION, which is only supported under Windows NT
00082  * (and requires _WIN32_WINNT to be defined, which prevents the resulting executable
00083  * from running under Windows 9x
00084  * Windows 9x should silently ignore it, so it's being used here directly
00085  */
00086 #ifndef MB_SERVICE_NOTIFICATION
00087 #define       MB_SERVICE_NOTIFICATION            0x00200000L
00088 #endif
00089 
00090 #define ZEND_SERVICE_MB_STYLE             (MB_TOPMOST|MB_SERVICE_NOTIFICATION)
00091 
00092 #endif /* ZEND_CONFIG_W32_H */
00093 
00094 /*
00095  * Local variables:
00096  * tab-width: 4
00097  * c-basic-offset: 4
00098  * indent-tabs-mode: t
00099  * End:
00100  */