From dad882cd33b686ba5b5dd97915c3e827abcc2ea6 Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Sat, 2 Dec 2000 08:14:58 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'php_4_0_4RC3'. --- Zend/acconfig.h | 72 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 Zend/acconfig.h (limited to 'Zend/acconfig.h') diff --git a/Zend/acconfig.h b/Zend/acconfig.h new file mode 100644 index 0000000000..01397626a0 --- /dev/null +++ b/Zend/acconfig.h @@ -0,0 +1,72 @@ +#define ZEND_API +#define ZEND_DLEXPORT + +@TOP@ + +/* these are defined by automake */ +#undef PACKAGE +#undef VERSION + +#undef uint +#undef ulong + +/* Define if you want to enable memory limit support */ +#define MEMORY_LIMIT 0 + +@BOTTOM@ + +#ifdef HAVE_STDLIB_H +# include +#endif + +#ifdef HAVE_SYS_TYPES_H +# include +#endif + +#ifdef HAVE_STRING_H +# include +#else +# include +#endif + +#if ZEND_BROKEN_SPRINTF +int zend_sprintf(char *buffer, const char *format, ...); +#else +# define zend_sprintf sprintf +#endif + +#include + +#ifdef HAVE_ISNAN +#define zend_isnan(a) isnan(a) +#elif defined(NAN) +#define zend_isnan(a) (((a)==NAN)?1:0) +#else +#define zend_isnan(a) 0 +#endif + +#ifdef HAVE_ISINF +#define zend_isinf(a) isinf(a) +#elif defined(INFINITY) +/* Might not work, but is required by ISO C99 */ +#define zend_isinf(a) (((a)==INFINITY)?1:0) +#else +#define zend_isinf(a) 0 +#endif + +#ifdef HAVE_FINITE +#define zend_finite(a) finite(a) +#elif defined(HAVE_ISFINITE) || defined(isfinite) +#define zend_finite(a) isfinite(a) +#elif defined(fpclassify) +#define zend_finite(a) ((fpclassify((a))!=FP_INFINITE&&fpclassify((a))!=FP_NAN)?1:0) +#else +#define zend_finite(a) (zend_isnan(a) ? 0 : zend_isinf(a) ? 0 : 1) +#endif + +/* + * Local variables: + * tab-width: 4 + * c-basic-offset: 4 + * End: + */ -- cgit v1.2.1