[windows] fix symbol exporting

This commit is contained in:
William Woodall 2015-03-13 20:41:29 -07:00 committed by William Woodall
parent 22b53b991d
commit 81c4900e01
2 changed files with 3 additions and 2 deletions

View file

@ -135,7 +135,8 @@ private:
} /* namespace node */
} /* namespace rclcpp */
#define RCLCPP_REGISTER_NODE(Class) rclcpp::node::Node::SharedPtr \
#define RCLCPP_REGISTER_NODE(Class) RMW_EXPORT \
rclcpp::node::Node::SharedPtr \
create_node() \
{ \
return rclcpp::node::Node::SharedPtr(new Class(rclcpp::contexts::default_context::DefaultContext::make_shared())); \

View file

@ -16,7 +16,7 @@
#include <rclcpp/rclcpp.hpp>
// 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)
{