Skip to content

Commit a39ba73

Browse files
authored
openslideconnection: fix link failure with modules enabled (#4456)
1 parent dbc3b86 commit a39ba73

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

libvips/include/vips/internal.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,10 @@ int vips__print_renders(void);
171171
int vips__type_leak(void);
172172
int vips__object_leak(void);
173173

174+
#ifdef HAVE_OPENSLIDE
175+
int vips__openslideconnection_leak(void);
176+
#endif /*HAVE_OPENSLIDE*/
177+
174178
/* iofuncs
175179
*/
176180
int vips__open_image_read(const char *filename);

libvips/iofuncs/init.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,6 @@ GQuark vips__image_pixels_quark = 0;
136136
*/
137137
static char *vips__max_coord_arg = NULL;
138138

139-
#ifdef HAVE_OPENSLIDE
140-
int vips__openslideconnection_leak(void);
141-
#endif /*HAVE_OPENSLIDE*/
142-
143139
/**
144140
* vips_max_coord_get:
145141
*
@@ -395,9 +391,9 @@ vips_leak(void)
395391
n_leaks += vips_tracked_get_allocs();
396392
n_leaks += vips_tracked_get_mem();
397393
n_leaks += vips_tracked_get_files();
398-
#ifdef HAVE_OPENSLIDE
394+
#if defined(HAVE_OPENSLIDE) && !defined(OPENSLIDE_MODULE)
399395
n_leaks += vips__openslideconnection_leak();
400-
#endif /*HAVE_OPENSLIDE*/
396+
#endif /*defined(HAVE_OPENSLIDE) && !defined(OPENSLIDE_MODULE)*/
401397

402398
if (vips_tracked_get_allocs() ||
403399
vips_tracked_get_mem() ||

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy