Commit 9f90ec8d authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

windowscodecs: Autoconf macros don't always have a value.

parent a93ee68f
...@@ -176,7 +176,7 @@ MAKE_FUNCPTR(png_get_tRNS); ...@@ -176,7 +176,7 @@ MAKE_FUNCPTR(png_get_tRNS);
MAKE_FUNCPTR(png_set_bgr); MAKE_FUNCPTR(png_set_bgr);
MAKE_FUNCPTR(png_set_crc_action); MAKE_FUNCPTR(png_set_crc_action);
MAKE_FUNCPTR(png_set_error_fn); MAKE_FUNCPTR(png_set_error_fn);
#if HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 #ifdef HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8
MAKE_FUNCPTR(png_set_expand_gray_1_2_4_to_8); MAKE_FUNCPTR(png_set_expand_gray_1_2_4_to_8);
#else #else
MAKE_FUNCPTR(png_set_gray_1_2_4_to_8); MAKE_FUNCPTR(png_set_gray_1_2_4_to_8);
...@@ -225,7 +225,7 @@ static void *load_libpng(void) ...@@ -225,7 +225,7 @@ static void *load_libpng(void)
LOAD_FUNCPTR(png_set_bgr); LOAD_FUNCPTR(png_set_bgr);
LOAD_FUNCPTR(png_set_crc_action); LOAD_FUNCPTR(png_set_crc_action);
LOAD_FUNCPTR(png_set_error_fn); LOAD_FUNCPTR(png_set_error_fn);
#if HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 #ifdef HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8
LOAD_FUNCPTR(png_set_expand_gray_1_2_4_to_8); LOAD_FUNCPTR(png_set_expand_gray_1_2_4_to_8);
#else #else
LOAD_FUNCPTR(png_set_gray_1_2_4_to_8); LOAD_FUNCPTR(png_set_gray_1_2_4_to_8);
...@@ -467,7 +467,7 @@ static HRESULT WINAPI PngDecoder_Initialize(IWICBitmapDecoder *iface, IStream *p ...@@ -467,7 +467,7 @@ static HRESULT WINAPI PngDecoder_Initialize(IWICBitmapDecoder *iface, IStream *p
{ {
if (bit_depth < 8) if (bit_depth < 8)
{ {
#if HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 #ifdef HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8
ppng_set_expand_gray_1_2_4_to_8(This->png_ptr); ppng_set_expand_gray_1_2_4_to_8(This->png_ptr);
#else #else
ppng_set_gray_1_2_4_to_8(This->png_ptr); ppng_set_gray_1_2_4_to_8(This->png_ptr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment