X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/a626cc03053700ca5bdbf0243831bec528e6fc4d..0cbff1201aa47e2b73ec90a97886f18e88270ea6:/src/png/pngwio.c diff --git a/src/png/pngwio.c b/src/png/pngwio.c index 84b5b2869d..05fe6dd96b 100644 --- a/src/png/pngwio.c +++ b/src/png/pngwio.c @@ -39,8 +39,13 @@ png_write_data(png_structp png_ptr, png_bytep data, png_size_t length) write_data function and use it at run time with png_set_write_fn(), rather than changing the library. */ #ifndef USE_FAR_KEYWORD +#ifdef __VISAGECPP__ +static void _Optlink +png_default_write_data(png_structp png_ptr, png_bytep data, png_size_t length) +#else static void png_default_write_data(png_structp png_ptr, png_bytep data, png_size_t length) +#endif { png_uint_32 check; @@ -59,8 +64,13 @@ png_default_write_data(png_structp png_ptr, png_bytep data, png_size_t length) #define NEAR_BUF_SIZE 1024 #define MIN(a,b) (a <= b ? a : b) +#ifdef __VISAGECPP__ +static void _Optlink +png_default_write_data(png_structp png_ptr, png_bytep data, png_size_t length) +#else static void png_default_write_data(png_structp png_ptr, png_bytep data, png_size_t length) +#endif { png_uint_32 check; png_byte *near_data; /* Needs to be "png_byte *" instead of "png_bytep" */ @@ -114,8 +124,13 @@ png_flush(png_structp png_ptr) } #if !defined(PNG_NO_STDIO) +#ifdef __VISAGECPP__ +static void _Optlink +png_default_flush(png_structp png_ptr) +#else static void png_default_flush(png_structp png_ptr) +#endif { FILE *io_ptr; io_ptr = (FILE *)CVT_PTR((png_ptr->io_ptr));