From 2a50894a436559785a7e0f6f65dde13b0082572c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 22 Apr 2019 20:57:31 +0200 Subject: Add support for GCC hidden visibility. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- art_pixbuf.h | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'art_pixbuf.h') diff --git a/art_pixbuf.h b/art_pixbuf.h index d303fc0..bbac88d 100644 --- a/art_pixbuf.h +++ b/art_pixbuf.h @@ -25,8 +25,10 @@ pixel buffer formats. */ #ifdef LIBART_COMPILATION +#include "art_config.h" #include "art_misc.h" #else +#include #include #endif @@ -64,37 +66,37 @@ struct _ArtPixBuf { }; /* allocate an ArtPixBuf from art_alloc()ed pixels (automated destruction) */ -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_new_rgb (art_u8 *pixels, int width, int height, int rowstride); -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_new_rgba (art_u8 *pixels, int width, int height, int rowstride); /* allocate an ArtPixBuf from constant pixels (no destruction) */ -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_new_const_rgb (const art_u8 *pixels, int width, int height, int rowstride); -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_new_const_rgba (const art_u8 *pixels, int width, int height, int rowstride); /* allocate an ArtPixBuf and notify creator upon destruction */ -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_new_rgb_dnotify (art_u8 *pixels, int width, int height, int rowstride, void *dfunc_data, ArtDestroyNotify dfunc); -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_new_rgba_dnotify (art_u8 *pixels, int width, int height, int rowstride, void *dfunc_data, ArtDestroyNotify dfunc); /* free an ArtPixBuf with destroy notification */ -void +LIBART_EXPORT void art_pixbuf_free (ArtPixBuf *pixbuf); /* deprecated function, use the _dnotify variants for allocation instead */ -void +LIBART_EXPORT void art_pixbuf_free_shallow (ArtPixBuf *pixbuf); -ArtPixBuf * +LIBART_EXPORT ArtPixBuf * art_pixbuf_duplicate (const ArtPixBuf *pixbuf); #ifdef __cplusplus -- cgit v1.2.3