mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 04:31:09 +00:00
test/reftests: Fix build on Visual Studio
As we are building the gtkreftestprivate and reftest test libraries as DLLs, we need to export the symbols in there so that things will link. Decorate the symbols with G_MODULE_EXPORT for this purpose.
This commit is contained in:
parent
5b5a68c5db
commit
68af572ba4
@ -21,7 +21,9 @@
|
||||
G_BEGIN_DECLS
|
||||
|
||||
/* reftest-snapshot.c */
|
||||
G_MODULE_EXPORT
|
||||
extern void reftest_inhibit_snapshot (void);
|
||||
G_MODULE_EXPORT
|
||||
extern void reftest_uninhibit_snapshot (void);
|
||||
|
||||
G_END_DECLS
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
G_MODULE_EXPORT
|
||||
cairo_surface_t * reftest_compare_surfaces (cairo_surface_t *surface1,
|
||||
cairo_surface_t *surface2);
|
||||
|
||||
|
@ -24,13 +24,18 @@ G_BEGIN_DECLS
|
||||
|
||||
typedef struct _ReftestModule ReftestModule;
|
||||
|
||||
G_MODULE_EXPORT
|
||||
ReftestModule * reftest_module_new (const char *directory,
|
||||
const char *module_name);
|
||||
G_MODULE_EXPORT
|
||||
ReftestModule * reftest_module_new_self (void);
|
||||
|
||||
G_MODULE_EXPORT
|
||||
ReftestModule * reftest_module_ref (ReftestModule *module);
|
||||
G_MODULE_EXPORT
|
||||
void reftest_module_unref (ReftestModule *module);
|
||||
|
||||
G_MODULE_EXPORT
|
||||
GCallback reftest_module_lookup (ReftestModule *module,
|
||||
const char *function_name);
|
||||
|
||||
|
@ -64,13 +64,13 @@ quit_when_idle (gpointer loop)
|
||||
static gint inhibit_count;
|
||||
static GMainLoop *loop;
|
||||
|
||||
void
|
||||
G_MODULE_EXPORT void
|
||||
reftest_inhibit_snapshot (void)
|
||||
{
|
||||
inhibit_count++;
|
||||
}
|
||||
|
||||
void
|
||||
G_MODULE_EXPORT void
|
||||
reftest_uninhibit_snapshot (void)
|
||||
{
|
||||
g_assert (inhibit_count > 0);
|
||||
|
@ -22,6 +22,7 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
G_MODULE_EXPORT
|
||||
cairo_surface_t * reftest_snapshot_ui_file (const char *ui_file);
|
||||
|
||||
G_END_DECLS
|
||||
|
Loading…
Reference in New Issue
Block a user