From: Derick Rethans Date: Thu, 8 Nov 2001 23:37:34 +0000 (+0000) Subject: - Let it also work with pdflib 3 again X-Git-Tag: ChangeLog~382 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1d60772d869c1d53a6378131723ad5ab73db2ce;p=php - Let it also work with pdflib 3 again --- diff --git a/ext/pdf/pdf.c b/ext/pdf/pdf.c index 83d379c3b0..e887295ecb 100644 --- a/ext/pdf/pdf.c +++ b/ext/pdf/pdf.c @@ -52,8 +52,8 @@ static int le_gd; #endif /* }}} */ -#if HAVE_PDFLIB - +#if HAVE_PDFLIB || HAVE_PDFLIB3 +#warning boo #include "php_pdf.h" static int le_pdf; diff --git a/ext/pdf/php_pdf.h b/ext/pdf/php_pdf.h index bf55817368..93f148ead0 100644 --- a/ext/pdf/php_pdf.h +++ b/ext/pdf/php_pdf.h @@ -21,7 +21,7 @@ #ifndef PHP_PDF_H #define PHP_PDF_H -#if HAVE_PDFLIB +#if HAVE_PDFLIB || HAVE_PDFLIB3 /* with version 2.20 of pdflib PDF_open_mem isn't available unless the following define isn't there.