summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorIlia Alshanetsky <iliaa@php.net>2003-01-15 00:52:06 +0000
committerIlia Alshanetsky <iliaa@php.net>2003-01-15 00:52:06 +0000
commita63b47cae070ccd8a59e06cd3e40dc054ab24551 (patch)
treecbdb219885f3e0409e252a0dc97529c0288961d6 /ext
parentc073b76aac82e3c00ad56119bd8e509f9f2a4670 (diff)
downloadphp-git-a63b47cae070ccd8a59e06cd3e40dc054ab24551.tar.gz
This patch allows cpdf to be compiled in conjunction with ncurses, which was
not possible before due to conflicting defines.
Diffstat (limited to 'ext')
-rw-r--r--ext/cpdf/cpdf.c2
-rw-r--r--ext/cpdf/php_cpdf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/cpdf/cpdf.c b/ext/cpdf/cpdf.c
index 4bb9847d39..99edcacdaa 100644
--- a/ext/cpdf/cpdf.c
+++ b/ext/cpdf/cpdf.c
@@ -45,6 +45,8 @@
# endif
#endif
+#include <cpdflib.h>
+
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
diff --git a/ext/cpdf/php_cpdf.h b/ext/cpdf/php_cpdf.h
index 45dda34f7d..1207511e60 100644
--- a/ext/cpdf/php_cpdf.h
+++ b/ext/cpdf/php_cpdf.h
@@ -29,8 +29,6 @@
#undef T
#endif
-#include <cpdflib.h>
-
extern zend_module_entry cpdf_module_entry;
#define cpdf_module_ptr &cpdf_module_entry