Back to index

php5  5.3.10
acconfig.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: acconfig.h 321634 2012-01-01 13:15:04Z felipe $ */
00021 
00022 #if defined(__GNUC__) && __GNUC__ >= 4
00023 # define ZEND_API __attribute__ ((visibility("default")))
00024 # define ZEND_DLEXPORT __attribute__ ((visibility("default")))
00025 #else
00026 # define ZEND_API
00027 # define ZEND_DLEXPORT
00028 #endif
00029 
00030 #define ZEND_DLIMPORT
00031 
00032 @TOP@
00033 
00034 #undef uint
00035 #undef ulong
00036 
00037 /* Define if you want to enable memory limit support */
00038 #define MEMORY_LIMIT 0
00039 
00040 @BOTTOM@
00041 
00042 #ifndef ZEND_ACCONFIG_H_NO_C_PROTOS
00043 
00044 #ifdef HAVE_STDLIB_H
00045 # include <stdlib.h>
00046 #endif
00047 
00048 #ifdef HAVE_SYS_TYPES_H
00049 # include <sys/types.h>
00050 #endif
00051 
00052 #ifdef HAVE_SYS_SELECT_H
00053 #include <sys/select.h>
00054 #endif
00055 
00056 #ifdef HAVE_IEEEFP_H
00057 # include <ieeefp.h>
00058 #endif
00059 
00060 #ifdef HAVE_STRING_H
00061 # include <string.h>
00062 #else
00063 # include <strings.h>
00064 #endif
00065 
00066 #if ZEND_BROKEN_SPRINTF
00067 int zend_sprintf(char *buffer, const char *format, ...);
00068 #else
00069 # define zend_sprintf sprintf
00070 #endif
00071 
00072 #include <math.h>
00073 
00074 /* To enable the is_nan, is_infinite and is_finite PHP functions */
00075 #ifdef NETWARE
00076        #define HAVE_ISNAN 1
00077        #define HAVE_ISINF 1
00078        #define HAVE_ISFINITE 1
00079 #endif
00080 
00081 #ifndef zend_isnan
00082 #ifdef HAVE_ISNAN
00083 #define zend_isnan(a) isnan(a)
00084 #elif defined(HAVE_FPCLASS)
00085 #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
00086 #else
00087 #define zend_isnan(a) 0
00088 #endif
00089 #endif
00090 
00091 #ifdef HAVE_ISINF
00092 #define zend_isinf(a) isinf(a)
00093 #elif defined(INFINITY)
00094 /* Might not work, but is required by ISO C99 */
00095 #define zend_isinf(a) (((a)==INFINITY)?1:0)
00096 #elif defined(HAVE_FPCLASS)
00097 #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
00098 #else
00099 #define zend_isinf(a) 0
00100 #endif
00101 
00102 #ifdef HAVE_FINITE
00103 #define zend_finite(a) finite(a)
00104 #elif defined(HAVE_ISFINITE) || defined(isfinite)
00105 #define zend_finite(a) isfinite(a)
00106 #elif defined(fpclassify)
00107 #define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0)
00108 #else
00109 #define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1)
00110 #endif
00111 
00112 #endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
00113 
00114 #ifdef NETWARE
00115 #ifdef USE_WINSOCK
00116 #/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T
00117 #/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H
00118 #endif
00119 #endif
00120 
00121 /*
00122  * Local variables:
00123  * tab-width: 4
00124  * c-basic-offset: 4
00125  * indent-tabs-mode: t
00126  * End:
00127  */