summaryrefslogtreecommitdiff
path: root/ext/bcmath/php_bcmath.h
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2009-08-20 11:19:20 +0000
committerJani Taskinen <jani@php.net>2009-08-20 11:19:20 +0000
commite1f42c3bbb6273c0f42c98f33ea291997df49ae7 (patch)
treef4606b1eff0b638087097599d3009207da013944 /ext/bcmath/php_bcmath.h
parent05f86b6edbec6fb683fa3850d1c542e152879120 (diff)
downloadphp-git-e1f42c3bbb6273c0f42c98f33ea291997df49ae7.tar.gz
- Fixed bug #49289 (bcmath module does not compile with phpize configure).
Diffstat (limited to 'ext/bcmath/php_bcmath.h')
-rw-r--r--ext/bcmath/php_bcmath.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/ext/bcmath/php_bcmath.h b/ext/bcmath/php_bcmath.h
index b8e3589652..b92f62d14b 100644
--- a/ext/bcmath/php_bcmath.h
+++ b/ext/bcmath/php_bcmath.h
@@ -21,8 +21,6 @@
#ifndef PHP_BCMATH_H
#define PHP_BCMATH_H
-#if HAVE_BCMATH
-
#include "libbcmath/src/bcmath.h"
extern zend_module_entry bcmath_module_entry;
@@ -50,18 +48,12 @@ ZEND_BEGIN_MODULE_GLOBALS(bcmath)
long bc_precision;
ZEND_END_MODULE_GLOBALS(bcmath)
-#if ZTS
-#define BCG(v) TSRMG(bcmath_globals_id, zend_bcmath_globals *, v)
+#ifdef ZTS
+# define BCG(v) TSRMG(bcmath_globals_id, zend_bcmath_globals *, v)
#else
-#define BCG(v) (bcmath_globals.v)
+# define BCG(v) (bcmath_globals.v)
#endif
ZEND_EXTERN_MODULE_GLOBALS(bcmath)
-#else
-
-#define phpext_bcmath_ptr NULL
-
-#endif
-
#endif /* PHP_BCMATH_H */