D Haley f231021
diff -r src/pngread.c src/pngread.c
D Haley f231021
--- src/pngread.c
D Haley f231021
+++ src/pngread.c
D Haley f231021
@@ -132,11 +132,7 @@ int read_png(FILE *fp, unsigned int sig_read, png_bytep **row_pointers,
D Haley f231021
    /* Expand grayscale images to the full 8 bits from 1, 2, or 4 bits/pixel */
D Haley f231021
    if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8)
D Haley f231021
    {
D Haley f231021
-#if defined(__APPLE__) || defined(__WIN32) || defined(__WIN64)
D Haley f231021
 	   png_set_expand_gray_1_2_4_to_8(png_ptr);
D Haley f231021
-#else
D Haley f231021
-      png_set_gray_1_2_4_to_8(png_ptr);
D Haley f231021
-#endif
D Haley f231021
 	}
D Haley f231021
 	
D Haley f231021
    /* Expand paletted or RGB images with transparency to full alpha for RGBA */