Compiling cairo-1.12.0 for MinGW target errors: src/cairo-1.12.0/test/any2ppm.c:126: error: conflicting types for ‘_write’ /usr/i586-mingw32msvc/include/io.h:253: error: previous declaration of ‘_write’ was here It seems that "_write" is defined in public MinGW headers. Renaming cairo side _write fixes allows compilation to proceed.
Confirm.
Created attachment 59358 [details] [review] Renaming patch How about renaming _write() to do_write() and _writen() to do_writen()?
commit 3f32419257bb2e380dd63a3b1a850b512a617776 Author: Maarten Bosmans <mkbosmans@gmail.com> Date: Mon Apr 9 21:33:49 2012 +0200 test: Give some functions in any2ppm a prefix The function name _write is too generic and can clash with already defined functions.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.