summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/main/php.h b/main/php.h
index 59fdf6a370..5af3f98e83 100644
--- a/main/php.h
+++ b/main/php.h
@@ -35,15 +35,15 @@
#include "php_compat.h"
/* automake defines PACKAGE and VERSION for Zend too */
-#ifdef PACKAGE
-# undef PACKAGE
-#endif
-#ifdef VERSION
-# undef VERSION
-#endif
+#undef PACKAGE
+#undef VERSION
#include "zend_API.h"
+#if PHP_BROKEN_SPRINTF
+#undef sprintf
+#define sprintf php_sprintf
+#endif
extern unsigned char first_arg_force_ref[];
extern unsigned char first_arg_allow_ref[];