]> granicus.if.org Git - php/commitdiff
- Fixed bug #49289 (bcmath module does not compile with phpize configure).
authorJani Taskinen <jani@php.net>
Thu, 20 Aug 2009 11:19:20 +0000 (11:19 +0000)
committerJani Taskinen <jani@php.net>
Thu, 20 Aug 2009 11:19:20 +0000 (11:19 +0000)
ext/bcmath/php_bcmath.h

index c621a2b328b5fa6be8cd4784a009a14182b0c61d..fe684d7133fc390998ac976a1e4c8ef83422100c 100644 (file)
@@ -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 */