The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: jspaces on November 22, 2013, 08:57:43 PM

Title: Subversion 6916 /utils/dr_rdpng.h needs #include <string.h> to compile.
Post by: jspaces on November 22, 2013, 08:57:43 PM
The latest subversion 6913 fails to compile on /utils/dr_rdpng.cc with the following error. After inserting "#include <string.h>"  in dr_rdpng.h, the compile completes successfully.
../utils/dr_rdpng.cc: In function 'bool load_block(unsigned char**, unsigned int*, unsigned int*, const char*, int)':
../utils/dr_rdpng.cc:136:86: error: 'strerror' was not declared in this scope
   dbg->warning( "while loading PNG", "%s: %s", fname, strerror(errno) );
                                                                                      ^
../uncommon.mk:46: recipe for target '../build/default/utils/dr_rdpng-makeobj.o' failed
make: *** [../build/default/utils/dr_rdpng-makeobj.o] Error 1
Title: Re: Subversion 6916 /utils/dr_rdpng.h needs #include <string.h> to compile.
Post by: Dwachs on November 22, 2013, 09:53:29 PM
in r6918. thank you for the hint.