Bug 5906 is a fatal compile error which occurs when including both IMAP
and ClibPDF support.

Problem: IMAP headers define T, which collide with a cpdflib function
declaration.

Solution: Get rid of it before incuding cpdflib.h. T is unused anyway,
but if someone someday decides to use T in the imap module he is in for a
suprise.

Here is the offending snippet from mail.h:

#define NIL 0                   /* convenient name */
#define T 1                     /* opposite of NIL */


Ofcourse anyone defining a macro named T in a lib for public consumption
should be shot. And NIL too for that matter. I guess this just adds to the
cozy old-broken-mess feeling that surrounds c-client.


Regards,
Fredrik

-- 
Do fish get thirsty?

Fredrik Öhrn                               Chalmers University of Technology
[EMAIL PROTECTED]                                                  Sweden



Index: php_cpdf.h
===================================================================
RCS file: /repository/php4/ext/cpdf/php_cpdf.h,v
retrieving revision 1.6
diff -u -r1.6 php_cpdf.h
--- php_cpdf.h  2000/07/02 23:46:38     1.6
+++ php_cpdf.h  2001/03/17 21:50:54
@@ -33,6 +33,13 @@

 #if HAVE_CPDFLIB

+/* IMAP headers define T, which collide with a cpdflib function declaration.
+   Get rid of it before incuding cpdflib.h since T isn't unused anyway. */
+
+#ifdef T
+#undef T
+#endif
+
 #include <cpdflib.h>

 extern zend_module_entry cpdf_module_entry;

bug5906.tgz

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to