Back to index

php5  5.3.10
acconfig.h
Go to the documentation of this file.
00001 /* Leave this file alone */
00002 /*
00003    +----------------------------------------------------------------------+
00004    | Zend Engine                                                          |
00005    +----------------------------------------------------------------------+
00006    | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) |
00007    +----------------------------------------------------------------------+
00008    | This source file is subject to version 2.00 of the Zend license,     |
00009    | that is bundled with this package in the file LICENSE, and is        |
00010    | available through the world-wide-web at the following url:           |
00011    | http://www.zend.com/license/2_00.txt.                                |
00012    | If you did not receive a copy of the Zend license and are unable to  |
00013    | obtain it through the world-wide-web, please send a note to          |
00014    | license@zend.com so we can mail you a copy immediately.              |
00015    +----------------------------------------------------------------------+
00016    | Authors: Andi Gutmans <andi@zend.com>                                |
00017    |          Zeev Suraski <zeev@zend.com>                                |
00018    +----------------------------------------------------------------------+
00019 */
00020 
00021 /* $Id: acconfig.h 321634 2012-01-01 13:15:04Z felipe $ */
00022 
00023 #if defined(__GNUC__) && __GNUC__ >= 4
00024 # define ZEND_API __attribute__ ((visibility("default")))
00025 # define ZEND_DLEXPORT __attribute__ ((visibility("default")))
00026 #else
00027 # define ZEND_API
00028 # define ZEND_DLEXPORT
00029 #endif
00030 
00031 #define ZEND_DLIMPORT
00032 
00033 @TOP@
00034 
00035 #undef uint
00036 #undef ulong
00037 
00038 /* Define if you want to enable memory limit support */
00039 #define MEMORY_LIMIT 0
00040 
00041 @BOTTOM@
00042 
00043 #ifndef ZEND_ACCONFIG_H_NO_C_PROTOS
00044 
00045 #ifdef HAVE_STDLIB_H
00046 # include <stdlib.h>
00047 #endif
00048 
00049 #ifdef HAVE_SYS_TYPES_H
00050 # include <sys/types.h>
00051 #endif
00052 
00053 #ifdef HAVE_SYS_SELECT_H
00054 #include <sys/select.h>
00055 #endif
00056 
00057 #ifdef HAVE_IEEEFP_H
00058 # include <ieeefp.h>
00059 #endif
00060 
00061 #ifdef HAVE_STRING_H
00062 # include <string.h>
00063 #else
00064 # include <strings.h>
00065 #endif
00066 
00067 #if ZEND_BROKEN_SPRINTF
00068 int zend_sprintf(char *buffer, const char *format, ...);
00069 #else
00070 # define zend_sprintf sprintf
00071 #endif
00072 
00073 #include <math.h>
00074 
00075 /* To enable the is_nan, is_infinite and is_finite PHP functions */
00076 #ifdef NETWARE
00077        #define HAVE_ISNAN 1
00078        #define HAVE_ISINF 1
00079        #define HAVE_ISFINITE 1
00080 #endif
00081 
00082 #ifndef zend_isnan
00083 #ifdef HAVE_ISNAN
00084 #define zend_isnan(a) isnan(a)
00085 #elif defined(HAVE_FPCLASS)
00086 #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
00087 #else
00088 #define zend_isnan(a) 0
00089 #endif
00090 #endif
00091 
00092 #ifdef HAVE_ISINF
00093 #define zend_isinf(a) isinf(a)
00094 #elif defined(INFINITY)
00095 /* Might not work, but is required by ISO C99 */
00096 #define zend_isinf(a) (((a)==INFINITY)?1:0)
00097 #elif defined(HAVE_FPCLASS)
00098 #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
00099 #else
00100 #define zend_isinf(a) 0
00101 #endif
00102 
00103 #ifdef HAVE_FINITE
00104 #define zend_finite(a) finite(a)
00105 #elif defined(HAVE_ISFINITE) || defined(isfinite)
00106 #define zend_finite(a) isfinite(a)
00107 #elif defined(fpclassify)
00108 #define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0)
00109 #else
00110 #define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1)
00111 #endif
00112 
00113 #endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
00114 
00115 #ifdef NETWARE
00116 #ifdef USE_WINSOCK
00117 #/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T
00118 #/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H
00119 #endif
00120 #endif
00121 
00122 /*
00123  * Local variables:
00124  * tab-width: 4
00125  * c-basic-offset: 4
00126  * indent-tabs-mode: t
00127  * End:
00128  */
00129 #undef PTHREADS