Annotation of embedaddon/php/acconfig.h, revision 1.1.1.1

1.1       misho       1: /* Leave this file alone */
                      2: /*
                      3:    +----------------------------------------------------------------------+
                      4:    | Zend Engine                                                          |
                      5:    +----------------------------------------------------------------------+
                      6:    | Copyright (c) 1998-2012 Zend Technologies Ltd. (http://www.zend.com) |
                      7:    +----------------------------------------------------------------------+
                      8:    | This source file is subject to version 2.00 of the Zend license,     |
                      9:    | that is bundled with this package in the file LICENSE, and is        |
                     10:    | available through the world-wide-web at the following url:           |
                     11:    | http://www.zend.com/license/2_00.txt.                                |
                     12:    | If you did not receive a copy of the Zend license and are unable to  |
                     13:    | obtain it through the world-wide-web, please send a note to          |
                     14:    | license@zend.com so we can mail you a copy immediately.              |
                     15:    +----------------------------------------------------------------------+
                     16:    | Authors: Andi Gutmans <andi@zend.com>                                |
                     17:    |          Zeev Suraski <zeev@zend.com>                                |
                     18:    +----------------------------------------------------------------------+
                     19: */
                     20: 
                     21: /* $Id: acconfig.h 321634 2012-01-01 13:15:04Z felipe $ */
                     22: 
                     23: #if defined(__GNUC__) && __GNUC__ >= 4
                     24: # define ZEND_API __attribute__ ((visibility("default")))
                     25: # define ZEND_DLEXPORT __attribute__ ((visibility("default")))
                     26: #else
                     27: # define ZEND_API
                     28: # define ZEND_DLEXPORT
                     29: #endif
                     30: 
                     31: #define ZEND_DLIMPORT
                     32: 
                     33: @TOP@
                     34: 
                     35: #undef uint
                     36: #undef ulong
                     37: 
                     38: /* Define if you want to enable memory limit support */
                     39: #define MEMORY_LIMIT 0
                     40: 
                     41: @BOTTOM@
                     42: 
                     43: #ifndef ZEND_ACCONFIG_H_NO_C_PROTOS
                     44: 
                     45: #ifdef HAVE_STDLIB_H
                     46: # include <stdlib.h>
                     47: #endif
                     48: 
                     49: #ifdef HAVE_SYS_TYPES_H
                     50: # include <sys/types.h>
                     51: #endif
                     52: 
                     53: #ifdef HAVE_SYS_SELECT_H
                     54: #include <sys/select.h>
                     55: #endif
                     56: 
                     57: #ifdef HAVE_IEEEFP_H
                     58: # include <ieeefp.h>
                     59: #endif
                     60: 
                     61: #ifdef HAVE_STRING_H
                     62: # include <string.h>
                     63: #else
                     64: # include <strings.h>
                     65: #endif
                     66: 
                     67: #if ZEND_BROKEN_SPRINTF
                     68: int zend_sprintf(char *buffer, const char *format, ...);
                     69: #else
                     70: # define zend_sprintf sprintf
                     71: #endif
                     72: 
                     73: #include <math.h>
                     74: 
                     75: /* To enable the is_nan, is_infinite and is_finite PHP functions */
                     76: #ifdef NETWARE
                     77:        #define HAVE_ISNAN 1
                     78:        #define HAVE_ISINF 1
                     79:        #define HAVE_ISFINITE 1
                     80: #endif
                     81: 
                     82: #ifndef zend_isnan
                     83: #ifdef HAVE_ISNAN
                     84: #define zend_isnan(a) isnan(a)
                     85: #elif defined(HAVE_FPCLASS)
                     86: #define zend_isnan(a) ((fpclass(a) == FP_SNAN) || (fpclass(a) == FP_QNAN))
                     87: #else
                     88: #define zend_isnan(a) 0
                     89: #endif
                     90: #endif
                     91: 
                     92: #ifdef HAVE_ISINF
                     93: #define zend_isinf(a) isinf(a)
                     94: #elif defined(INFINITY)
                     95: /* Might not work, but is required by ISO C99 */
                     96: #define zend_isinf(a) (((a)==INFINITY)?1:0)
                     97: #elif defined(HAVE_FPCLASS)
                     98: #define zend_isinf(a) ((fpclass(a) == FP_PINF) || (fpclass(a) == FP_NINF))
                     99: #else
                    100: #define zend_isinf(a) 0
                    101: #endif
                    102: 
                    103: #ifdef HAVE_FINITE
                    104: #define zend_finite(a) finite(a)
                    105: #elif defined(HAVE_ISFINITE) || defined(isfinite)
                    106: #define zend_finite(a) isfinite(a)
                    107: #elif defined(fpclassify)
                    108: #define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0)
                    109: #else
                    110: #define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1)
                    111: #endif
                    112: 
                    113: #endif /* ifndef ZEND_ACCONFIG_H_NO_C_PROTOS */
                    114: 
                    115: #ifdef NETWARE
                    116: #ifdef USE_WINSOCK
                    117: #/*This detection against winsock is of no use*/ undef HAVE_SOCKLEN_T
                    118: #/*This detection against winsock is of no use*/ undef HAVE_SYS_SOCKET_H
                    119: #endif
                    120: #endif
                    121: 
                    122: /*
                    123:  * Local variables:
                    124:  * tab-width: 4
                    125:  * c-basic-offset: 4
                    126:  * indent-tabs-mode: t
                    127:  * End:
                    128:  */
                    129: #undef PTHREADS

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>