prefix symbols with wx_ to reduce risk of collision
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25418 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -160,12 +160,14 @@ struct wxPNGInfoStruct
|
||||
extern "C"
|
||||
{
|
||||
|
||||
void PNGLINKAGEMODE _PNG_stream_reader( png_structp png_ptr, png_bytep data, png_size_t length )
|
||||
void PNGLINKAGEMODE wx_PNG_stream_reader( png_structp png_ptr, png_bytep data,
|
||||
png_size_t length )
|
||||
{
|
||||
WX_PNG_INFO(png_ptr)->stream.in->Read(data, length);
|
||||
}
|
||||
|
||||
void PNGLINKAGEMODE _PNG_stream_writer( png_structp png_ptr, png_bytep data, png_size_t length )
|
||||
void PNGLINKAGEMODE wx_PNG_stream_writer( png_structp png_ptr, png_bytep data,
|
||||
png_size_t length )
|
||||
{
|
||||
WX_PNG_INFO(png_ptr)->stream.out->Write(data, length);
|
||||
}
|
||||
@@ -540,7 +542,7 @@ wxPNGHandler::LoadFile(wxImage *image,
|
||||
|
||||
// NB: please see the comment near wxPNGInfoStruct declaration for
|
||||
// explanation why this line is mandatory
|
||||
png_set_read_fn( png_ptr, &wxinfo, _PNG_stream_reader);
|
||||
png_set_read_fn( png_ptr, &wxinfo, wx_PNG_stream_reader);
|
||||
|
||||
info_ptr = png_create_info_struct( png_ptr );
|
||||
if (!info_ptr)
|
||||
@@ -667,7 +669,7 @@ bool wxPNGHandler::SaveFile( wxImage *image, wxOutputStream& stream, bool verbos
|
||||
|
||||
// NB: please see the comment near wxPNGInfoStruct declaration for
|
||||
// explanation why this line is mandatory
|
||||
png_set_write_fn( png_ptr, &wxinfo, _PNG_stream_writer, NULL);
|
||||
png_set_write_fn( png_ptr, &wxinfo, wx_PNG_stream_writer, NULL);
|
||||
|
||||
png_set_IHDR( png_ptr, info_ptr, image->GetWidth(), image->GetHeight(), 8,
|
||||
PNG_COLOR_TYPE_RGB_ALPHA, PNG_INTERLACE_NONE,
|
||||
|
||||
Reference in New Issue
Block a user