"tests/git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "f3ad1caa8497437cbcb01a2da08732c12a54c437"
Commit abd5ea0a authored by Davis King's avatar Davis King
Browse files

Fixed a bug which caused multiply defined symbol errors during linking

if the PNG saving routine was #included.
parent 7e8af32b
......@@ -21,11 +21,11 @@ namespace dlib
#ifdef DLIB_PNG_SUPPORT
// Don't do anything when libpng calls us to tell us about an error. Just return to
// our own code and throw an exception (at the long jump target).
void png_reader_user_error_fn_silent(png_structp png_struct, png_const_charp )
inline void png_reader_user_error_fn_silent(png_structp png_struct, png_const_charp )
{
longjmp(png_jmpbuf(png_struct),1);
}
void png_reader_user_warning_fn_silent(png_structp , png_const_charp )
inline void png_reader_user_warning_fn_silent(png_structp , png_const_charp )
{
}
#endif
......
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