summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */