Skip to content

Commit 9507d14

Browse files
committed
Fix redefine warnings
1 parent 4be4a38 commit 9507d14

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

ext/imap/php_imap.h

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,21 @@
3535
#if HAVE_IMAP
3636

3737
#if defined(HAVE_IMAP2000) || defined(HAVE_IMAP2001)
38+
39+
/* For now these appear on Windows, remove this check if it appears outside */
40+
# ifdef PHP_WIN32
41+
/* Undefine these LOG defines to avoid warnings */
42+
# undef LOG_EMERG
43+
# undef LOG_CRIT
44+
# undef LOG_ERR
45+
# undef LOG_WARNING
46+
# undef LOG_NOTICE
47+
# undef LOG_DEBUG
48+
49+
/* c-client also redefines its own ftruncate */
50+
# undef ftruncate
51+
# endif
52+
3853
/* these are used for quota support */
3954
# include "c-client.h" /* includes mail.h and rfc822.h */
4055
# include "imap4r1.h" /* location of c-client quota functions */

0 commit comments

Comments
 (0)