Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 9bd6cfb

Browse files
committed
Add workaround for missing fl_method_xxx_response_get_type() symbols
Using the following macros: - FL_METHOD_SUCCESS_RESPONSE() - FL_METHOD_ERROR_RESPONSE() - FL_METHOD_NOT_IMPLEMENTED_RESPONSE() Would result to linking errors: /usr/bin/ld: foo_plugin.so: undefined reference to `fl_method_success_response_get_type' /usr/bin/ld: foo_plugin.so: undefined reference to `fl_method_error_response_get_type' /usr/bin/ld: foo_plugin.so: undefined reference to `fl_method_not_implemented_response_get_type' See also commit 6e378cf.
1 parent a1db2b3 commit 9bd6cfb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

shell/platform/linux/fl_method_response.cc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,11 @@ struct _FlMethodNotImplementedResponse {
2626
FlMethodResponse parent_instance;
2727
};
2828

29-
// Added here to stop the compiler from optimising this function away.
29+
// Added here to stop the compiler from optimising these functions away.
3030
G_MODULE_EXPORT GType fl_method_response_get_type();
31+
G_MODULE_EXPORT GType fl_method_success_response_get_type();
32+
G_MODULE_EXPORT GType fl_method_error_response_get_type();
33+
G_MODULE_EXPORT GType fl_method_not_implemented_response_get_type();
3134

3235
G_DEFINE_TYPE(FlMethodResponse, fl_method_response, G_TYPE_OBJECT)
3336
G_DEFINE_TYPE(FlMethodSuccessResponse,

0 commit comments

Comments
 (0)