[windows] fix symbol exporting
This commit is contained in:
parent
22b53b991d
commit
81c4900e01
2 changed files with 3 additions and 2 deletions
|
@ -135,7 +135,8 @@ private:
|
||||||
} /* namespace node */
|
} /* namespace node */
|
||||||
} /* namespace rclcpp */
|
} /* namespace rclcpp */
|
||||||
|
|
||||||
#define RCLCPP_REGISTER_NODE(Class) rclcpp::node::Node::SharedPtr \
|
#define RCLCPP_REGISTER_NODE(Class) RMW_EXPORT \
|
||||||
|
rclcpp::node::Node::SharedPtr \
|
||||||
create_node() \
|
create_node() \
|
||||||
{ \
|
{ \
|
||||||
return rclcpp::node::Node::SharedPtr(new Class(rclcpp::contexts::default_context::DefaultContext::make_shared())); \
|
return rclcpp::node::Node::SharedPtr(new Class(rclcpp::contexts::default_context::DefaultContext::make_shared())); \
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
#include <rclcpp/rclcpp.hpp>
|
#include <rclcpp/rclcpp.hpp>
|
||||||
|
|
||||||
// This forward declaration is implemented by the RCLCPP_REGISTER_NODE macro
|
// This forward declaration is implemented by the RCLCPP_REGISTER_NODE macro
|
||||||
rclcpp::Node::SharedPtr create_node();
|
RMW_IMPORT rclcpp::Node::SharedPtr create_node();
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue