summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/cpdf/php_cpdf.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/cpdf/php_cpdf.h b/ext/cpdf/php_cpdf.h
index 9c44e513ad..6749882d24 100644
--- a/ext/cpdf/php_cpdf.h
+++ b/ext/cpdf/php_cpdf.h
@@ -33,6 +33,13 @@
#if HAVE_CPDFLIB
+/* The macro T is defined in the IMAP headers and clashes with a function
+ declaration here. Get rid of it. */
+
+#ifdef T
+#undef T
+#endif
+
#include <cpdflib.h>
extern zend_module_entry cpdf_module_entry;