Michal Privoznik
77d1fa5e75
tests: Compile virgdbusmock.c with GIO_COMPILATION enabled
...
There are couple of g_dbus_*() functions we provide an
alternative implementation for in our virgdbusmock.c. However,
these functions are declared in gio/gdbusconnection.h as:
GIO_AVAILABLE_IN_ALL
GDBusConnection *g_bus_get_sync (GBusType bus_type,
GCancellable *cancellable,
GError **error);
where GIO_AVAILABLE_IN_ALL is declared as (in
/gio/gio-visibility.h):
#if (defined(_WIN32) || defined(__CYGWIN__)) && !defined(GIO_STATIC_COMPILATION)
# define _GIO_EXPORT __declspec(dllexport)
# define _GIO_IMPORT __declspec(dllimport)
#elif __GNUC__ >= 4
# define _GIO_EXPORT __attribute__((visibility("default")))
# define _GIO_IMPORT
#else
# define _GIO_EXPORT
# define _GIO_IMPORT
#endif
#ifdef GIO_COMPILATION
# define _GIO_API _GIO_EXPORT
#else
# define _GIO_API _GIO_IMPORT
#endif
#define _GIO_EXTERN _GIO_API extern
#define GIO_AVAILABLE_IN_ALL _GIO_EXTERN
Now, on mingw the functions we mock are declared with dllimport
attribute which makes the compiler unhappy:
../tests/virgdbusmock.c:25:24: error: 'g_bus_get_sync'
redeclared without dllimport attribute: previous dllimport
ignored [-Werror=attributes]
The solution is to do what glib does when it compiles the gio
module: set GIO_COMPILATION macro which in turn annotates the
function with dllexport attribute.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2023-03-28 09:43:40 +02:00
..
2022-09-21 12:02:40 +01:00
2023-02-14 13:59:45 +01:00
2023-02-14 13:59:45 +01:00
2022-12-01 14:22:39 +01:00
2022-11-08 21:45:02 +01:00
2023-03-15 14:46:12 +01:00
2023-03-06 20:55:49 +01:00
2022-08-04 09:04:07 +02:00
2023-03-10 11:01:42 -07:00
2022-06-01 09:40:40 +02:00
2022-06-01 09:40:40 +02:00
2022-06-01 09:40:40 +02:00
2022-02-04 17:50:57 +01:00
2022-11-01 13:07:20 +01:00
2022-09-01 13:11:09 +02:00
2022-03-09 11:37:32 +00:00
2022-03-04 15:08:59 +01:00
2022-03-04 15:08:59 +01:00
2022-11-02 09:26:03 +01:00
2023-03-16 15:19:36 +01:00
2023-03-06 20:55:50 +01:00
2022-09-01 13:11:09 +02:00
2023-03-22 13:49:53 +01:00
2023-03-06 14:44:13 +01:00
2023-03-06 14:44:13 +01:00
2022-08-11 15:13:55 +02:00
2023-03-16 15:19:36 +01:00
2023-03-22 13:49:53 +01:00
2023-03-22 13:49:53 +01:00
2022-11-03 09:19:54 +01:00
2022-07-01 14:51:19 +02:00
2022-07-01 16:53:08 +02:00
2022-09-01 13:11:09 +02:00
2022-09-01 13:11:09 +02:00
2022-09-01 13:11:09 +02:00
2022-09-01 13:11:09 +02:00
2023-03-15 12:46:21 +01:00
2023-01-02 20:39:09 +01:00
2022-04-05 13:40:33 +02:00
2022-08-25 13:27:04 +02:00
2023-03-10 11:02:02 -07:00
2022-08-25 13:27:04 +02:00
2022-09-07 12:06:18 +02:00
2022-11-09 18:22:47 +01:00
2023-02-14 13:59:45 +01:00
2022-12-01 17:24:31 +01:00
2023-03-06 20:55:50 +01:00
2022-08-10 17:49:52 +02:00
2023-01-24 13:24:41 -03:00
2022-06-16 06:43:58 +02:00
2022-12-01 14:22:39 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-08-04 09:04:07 +02:00
2022-06-16 06:43:58 +02:00
2022-11-11 08:10:34 -07:00
2023-03-10 11:01:42 -07:00
2022-06-16 06:43:58 +02:00
2023-03-28 09:43:40 +02:00
2022-11-09 18:22:47 +01:00
2022-10-06 10:54:25 +02:00
2022-10-06 10:54:25 +02:00
2022-10-06 10:54:25 +02:00
2022-11-01 13:07:20 +01:00
2022-11-01 13:07:20 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-12-01 14:22:39 +01:00
2022-10-06 10:54:25 +02:00
2023-01-20 22:09:34 +01:00
2022-06-16 06:43:58 +02:00
2022-12-01 14:22:39 +01:00
2022-05-24 12:19:18 +02:00
2022-11-08 12:10:50 +01:00
2023-03-17 15:36:36 +01:00
2022-01-12 11:43:30 +01:00
2023-03-06 20:55:50 +01:00
2023-03-06 20:55:50 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-09-01 13:11:09 +02:00
2023-03-22 13:49:53 +01:00
2022-06-16 06:43:58 +02:00
2023-03-07 12:26:33 +01:00
2023-03-06 20:55:50 +01:00
2022-07-01 11:28:34 +02:00
2023-03-06 14:35:35 +01:00
2023-01-09 13:32:44 +01:00
2022-12-23 14:48:31 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2023-03-06 20:55:50 +01:00
2023-03-06 20:55:50 +01:00
2023-03-15 12:46:36 +01:00
2023-03-22 13:49:53 +01:00
2023-03-22 13:49:53 +01:00
2023-03-03 13:52:37 +01:00
2022-06-16 06:43:58 +02:00
2022-10-06 10:54:24 +02:00
2022-12-12 10:36:13 +00:00
2023-03-06 20:55:50 +01:00
2022-06-16 06:43:58 +02:00
2022-02-15 09:32:23 +01:00
2022-12-01 14:22:39 +01:00
2022-10-06 10:54:24 +02:00
2022-10-06 10:54:24 +02:00
2022-10-06 10:54:24 +02:00
2022-10-06 10:54:24 +02:00
2022-06-16 06:43:58 +02:00
2023-03-06 14:35:35 +01:00
2023-03-03 13:52:37 +01:00
2023-03-06 20:55:50 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2023-03-09 14:09:16 +01:00
2023-03-06 20:55:50 +01:00
2022-08-01 10:24:34 +02:00
2022-12-01 14:22:39 +01:00
2022-12-01 14:22:39 +01:00
2022-06-16 06:43:58 +02:00
2023-03-13 13:29:07 +01:00
2022-12-01 14:22:39 +01:00
2022-06-16 06:43:58 +02:00
2022-10-19 16:32:14 +02:00
2023-03-03 13:52:37 +01:00
2022-06-16 06:43:58 +02:00
2022-01-18 15:19:47 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-12-12 10:36:13 +00:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-12-01 14:22:39 +01:00
2022-09-30 15:38:47 +02:00
2022-06-16 06:43:58 +02:00
2023-03-03 13:52:37 +01:00
2022-06-16 06:43:58 +02:00
2022-12-01 14:22:39 +01:00
2022-06-16 06:43:58 +02:00
2022-12-01 14:22:39 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-03-07 10:31:24 +01:00
2022-11-21 15:49:36 +01:00
2023-01-02 20:39:09 +01:00
2022-12-01 14:22:39 +01:00
2022-06-16 06:43:58 +02:00
2022-12-01 14:22:39 +01:00
2023-03-13 13:29:07 +01:00
2022-06-16 06:43:58 +02:00
2022-12-01 14:22:39 +01:00
2022-11-21 15:36:08 +01:00
2022-02-08 08:42:07 +01:00
2022-11-21 15:36:08 +01:00
2022-10-06 10:54:24 +02:00
2023-03-15 12:46:21 +01:00
2022-10-06 10:54:24 +02:00
2022-06-16 06:43:58 +02:00
2023-03-03 13:52:37 +01:00
2022-02-11 15:06:19 +01:00
2022-06-16 06:43:58 +02:00
2022-07-01 13:04:59 +02:00
2022-11-03 09:19:54 +01:00
2022-12-07 14:33:28 +01:00
2022-12-01 14:22:39 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-02-17 14:17:04 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-02-01 17:37:06 +01:00
2023-02-08 16:50:45 +01:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-08-25 13:27:04 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-06-16 06:43:58 +02:00
2022-08-25 13:27:04 +02:00