-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[workspace] Update common_robotics_utilities to latest commit
Switch to use a hidden namespace.
- Loading branch information
1 parent
0d9c419
commit efdd3e8
Showing
3 changed files
with
19 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tools/workspace/common_robotics_utilities/patches/vendor.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[cru] Use hidden linker visibility | ||
|
||
This prevents ODR violations in case downstream code also links to CRU. | ||
|
||
--- include/common_robotics_utilities/cru_namespace.hpp | ||
+++ include/common_robotics_utilities/cru_namespace.hpp | ||
@@ -17,5 +17,5 @@ | ||
|
||
#ifndef CRU_NAMESPACE_BEGIN | ||
-# define CRU_NAMESPACE_BEGIN inline namespace v1 { | ||
+# define CRU_NAMESPACE_BEGIN inline namespace drake_vendor __attribute__ ((visibility ("hidden"))) { | ||
#endif | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters