From: Uwe Steinmann Date: Thu, 6 Jul 2000 05:30:06 +0000 (+0000) Subject: - fixed compile problems on win32 (thanks to Gabriel Weisz ) X-Git-Tag: PRE_METHOD_CALL_SEPERATE_FIX_PATCH~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e1d9d149abf88673bff3edbf1d3cf9799be70c7f;p=php - fixed compile problems on win32 (thanks to Gabriel Weisz ) --- 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 */