Use NULL instead of png_voidp_NULL.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 21 Jan 2013 19:55:26 +0000 (20:55 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 21 Jan 2013 19:55:26 +0000 (20:55 +0100)
Fixes a compile error on OS X, reportedly.

demo.cpp

index 08b858d..f16a08f 100644 (file)
--- a/demo.cpp
+++ b/demo.cpp
@@ -151,7 +151,7 @@ void write_png(const char *filename, unsigned char *screenbuf)
 
        png_init_io(png_ptr, fp);
        png_set_rows(png_ptr, info_ptr, row_pointers);
-       png_write_png(png_ptr, info_ptr, PNG_TRANSFORM_BGR, png_voidp_NULL);
+       png_write_png(png_ptr, info_ptr, PNG_TRANSFORM_BGR, NULL);
        png_destroy_write_struct(&png_ptr, &info_ptr);
        fclose(fp);