X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e6ed776fb2d330b4b6d0105c3628ccf88fd3bb60..ea5d599df31bba3d7a3317836954c33907a5bc9d:/src/xpm/image.c diff --git a/src/xpm/image.c b/src/xpm/image.c index 0753622186..9090c3adcf 100644 --- a/src/xpm/image.c +++ b/src/xpm/image.c @@ -37,9 +37,15 @@ /* * Init returned data to free safely later on */ +#ifdef __OS2__ +/* Visual Age cannot deal with old, non-ansi, code */ +void +xpmInitXpmImage(XpmImage* image) +#else void xpmInitXpmImage(image) XpmImage *image; +#endif { image->ncolors = 0; image->colorTable = NULL; @@ -49,9 +55,15 @@ xpmInitXpmImage(image) /* * Free the XpmImage data which have been allocated */ +#ifdef __OS2__ +/* Visual Age cannot deal with old, non-ansi, code */ +void +XpmFreeXpmImage(XpmImage* image) +#else void XpmFreeXpmImage(image) XpmImage *image; +#endif { if (image->colorTable) xpmFreeColorTable(image->colorTable, image->ncolors);