-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include support for Windows in 1.0.0 #312
Conversation
924a3b1
to
73613dd
Compare
rcl
rcl_action✅ rcl_lifecycle✅ |
@ahcorde could we rebase this to target |
// z_owned_string_t shm_enabled; | ||
// zc_config_get_from_str(z_loan(config), Z_CONFIG_SHARED_MEMORY_KEY, &shm_enabled); | ||
// auto always_free_shm_enabled = rcpputils::make_scope_exit( | ||
// [&shm_enabled]() { | ||
// z_drop(z_move(shm_enabled)); | ||
// }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does the code not compile if uncommented on Windows?
Instead of commenting it for all users, can we rely on #ifdef
blocks?
e734f05
to
5e5836c
Compare
5e5836c
to
3b6fb80
Compare
Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Removed some warnings Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Removed C4099 Windows warning Signed-off-by: Alejandro Hernandez Cordero <[email protected]> Support Windows Signed-off-by: Yadunund <[email protected]> undo changes Signed-off-by: Yadunund <[email protected]>
3b6fb80
to
26360a8
Compare
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
@clalancette any opinions here?
Just so we don't have to use as many workarounds. Signed-off-by: Chris Lalancette <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a couple of updates here to use less of MSC_VER
, and to try to do less casting as well. With that, I'm happy with this, so I'm going to approve and merge.
///============================================================================= | ||
class rmw_context_impl_s final | ||
struct rmw_context_impl_s final |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clalancette was this change to struct intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a warning on Windows, rmw_context_impl_s
is defined in the rmw
as a struct but we are implementing this as a class.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@clalancette was this change to struct intentional?
Yes, because otherwise Windows complains that it is defined as a struct in rmw.h, but as a class here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Thanks for pointing that out.
For visibility reason I created a branch called dev/1.0.0 in this repository, otherwise I can't open the PR
Include support for Windows in 1.0.0