diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-11-22 11:31:31 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2019-11-22 11:43:35 +0800 |
commit | 36edb5fbf63b4db425697fbf4f6dd5199e59bac7 (patch) | |
tree | 5aaaa94adb029aed162a25567104ee1877173bb9 /testsuite | |
parent | 1a87249d1aeba6d5f96ae64504c60c2308826b0d (diff) | |
download | gtk+-36edb5fbf63b4db425697fbf4f6dd5199e59bac7.tar.gz |
reftests: Fix building on Visual Studio
We need to mark the prototypes in the headers so that they get exported
properly from the reftest DLLs that we build, so that the reftest DLLs
and program will link properly. Include gtk-reftest.h in
reftest-snapshot.c so that the compiler picks up the export directives
as needed.
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/reftests/gtk-reftest.h | 3 | ||||
-rw-r--r-- | testsuite/reftests/reftest-compare.h | 1 | ||||
-rw-r--r-- | testsuite/reftests/reftest-module.h | 6 | ||||
-rw-r--r-- | testsuite/reftests/reftest-snapshot.c | 1 | ||||
-rw-r--r-- | testsuite/reftests/reftest-snapshot.h | 1 |
5 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/reftests/gtk-reftest.h b/testsuite/reftests/gtk-reftest.h index e30c78f0ea..1e1a1713ad 100644 --- a/testsuite/reftests/gtk-reftest.h +++ b/testsuite/reftests/gtk-reftest.h @@ -21,7 +21,10 @@ G_BEGIN_DECLS /* reftest-snapshot.c */ +G_MODULE_EXPORT void reftest_inhibit_snapshot (void); + +G_MODULE_EXPORT void reftest_uninhibit_snapshot (void); G_END_DECLS diff --git a/testsuite/reftests/reftest-compare.h b/testsuite/reftests/reftest-compare.h index b889e16597..551b1c5a92 100644 --- a/testsuite/reftests/reftest-compare.h +++ b/testsuite/reftests/reftest-compare.h @@ -22,6 +22,7 @@ G_BEGIN_DECLS +G_MODULE_EXPORT cairo_surface_t * reftest_compare_surfaces (cairo_surface_t *surface1, cairo_surface_t *surface2); diff --git a/testsuite/reftests/reftest-module.h b/testsuite/reftests/reftest-module.h index cd12657fc0..72317ceeb2 100644 --- a/testsuite/reftests/reftest-module.h +++ b/testsuite/reftests/reftest-module.h @@ -24,13 +24,19 @@ 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); diff --git a/testsuite/reftests/reftest-snapshot.c b/testsuite/reftests/reftest-snapshot.c index cd3cee7d08..6f44197278 100644 --- a/testsuite/reftests/reftest-snapshot.c +++ b/testsuite/reftests/reftest-snapshot.c @@ -23,6 +23,7 @@ #include "reftest-snapshot.h" #include "reftest-module.h" +#include "gtk-reftest.h" #include <string.h> diff --git a/testsuite/reftests/reftest-snapshot.h b/testsuite/reftests/reftest-snapshot.h index 178d2e8469..5a24388722 100644 --- a/testsuite/reftests/reftest-snapshot.h +++ b/testsuite/reftests/reftest-snapshot.h @@ -22,6 +22,7 @@ G_BEGIN_DECLS +G_MODULE_EXPORT cairo_surface_t * reftest_snapshot_ui_file (const char *ui_file); G_END_DECLS |