summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Steinmann <steinm@php.net>2000-07-06 05:30:06 +0000
committerUwe Steinmann <steinm@php.net>2000-07-06 05:30:06 +0000
commite1d9d149abf88673bff3edbf1d3cf9799be70c7f (patch)
treec365d9f372cf98c39c114cf4821669e08b5531ce
parentdc7441c2fd00f2f21a9a2dc3a38990c0322f0c14 (diff)
downloadphp-git-e1d9d149abf88673bff3edbf1d3cf9799be70c7f.tar.gz
- fixed compile problems on win32 (thanks to Gabriel Weisz <gweisz@l-speed.com>)
-rw-r--r--ext/fdf/fdf.c6
-rw-r--r--ext/fdf/php_fdf.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/ext/fdf/fdf.c b/ext/fdf/fdf.c
index 710755b314..9dc5883cce 100644
--- a/ext/fdf/fdf.c
+++ b/ext/fdf/fdf.c
@@ -115,6 +115,9 @@ PHP_MINIT_FUNCTION(fdf)
{
FDFErc err;
FDF_GLOBAL(le_fdf) = register_list_destructors(phpi_FDFClose, NULL);
+#ifdef WIN32
+ return SUCCESS;
+#endif
err = FDFInitialize();
if(err == FDFErcOK)
return SUCCESS;
@@ -133,6 +136,9 @@ PHP_MINFO_FUNCTION(fdf)
PHP_MSHUTDOWN_FUNCTION(fdf)
{
FDFErc err;
+#ifdef WIN32
+ return SUCCESS;
+#endif
err = FDFFinalize();
if(err == FDFErcOK)
return SUCCESS;
diff --git a/ext/fdf/php_fdf.h b/ext/fdf/php_fdf.h
index c02cc4c247..6f3d5fe9b0 100644
--- a/ext/fdf/php_fdf.h
+++ b/ext/fdf/php_fdf.h
@@ -62,4 +62,5 @@ PHP_FUNCTION(fdf_add_template);
#else
#define phpext_fdf_ptr NULL
#endif
+#define phpext_fdf_ptr fdf_module_ptr
#endif /* PHP_FDF_H */