mirror of https://github.com/davisking/dlib.git
Fixed a bug which caused multiply defined symbol errors during linking
if the PNG saving routine was #included.
This commit is contained in:
parent
7e8af32b1d
commit
abd5ea0a70
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue