Skip to content

Commit

Permalink
micro-ROS iron Library auto-update 15-09-2023 06:08
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogs9 authored Sep 15, 2023
1 parent 76bb015 commit c3e843e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion built_packages
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ https://github.com/ros2/rosidl.git 995917e9ce14d17821c04bf28d5a092111537842
https://github.com/ros2/rosidl_core.git 83df4c6574f90a8479d0b0211a463a7806ad6179
https://github.com/ros2/rosidl_dds.git f074b295c316e9bbb9845344cc6ab882339e9305
https://github.com/ros2/rosidl_defaults.git 34a204f3ce0528c6ec3bb89d33404422eb879995
https://github.com/ros2/rosidl_dynamic_typesupport 9e9264c5718489dea75337657473a183ed5ec19c
https://github.com/ros2/rosidl_dynamic_typesupport 58e39fdc961273abf4587ac89b632063e9b55ca5
https://github.com/ros2/test_interface_files.git 3abbbf68d939cac86e53992b68ee93f9a37fff41
https://github.com/ros2/unique_identifier_msgs.git 1ced881f07e5d5744d01867b1caedbc13c856195
https://github.com/yaml/libyaml.git 2c891fc7a770e8ba2fec34fc6b545c672beb37e6
19 changes: 16 additions & 3 deletions libmicroros/include/rosidl_dynamic_typesupport/uchar.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,25 @@ extern "C" {
#if defined(__cplusplus) && __cplusplus >= 201103L
// Nothing to do here, C++11 and beyond have char16_t as a keyword:
// https://en.cppreference.com/w/cpp/keyword/char16_t
#elif defined(__has_include) && __has_include(<uchar.h>)
#else
// According to https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005finclude.html,
// short-circuit style use of __has_include is not supported, so split the conditional
# if defined(__has_include)
# if __has_include(<uchar.h>)
// If the compiler has __has_include, and uchar.h exists, include that as it will have char16_t
// as a typedef.
# include <uchar.h>
#else
# include <uchar.h>
# else
// Otherwise assume that char16_t isn't defined anywhere, and define it ourselves as uint_least16_t.
# define __ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H__NEEDS_CHAR16_T_DECL
# endif
# else
# define __ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H__NEEDS_CHAR16_T_DECL
# endif
#endif

#if defined(__ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H__NEEDS_CHAR16_T_DECL)
# undef __ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H__NEEDS_CHAR16_T_DECL
# include <stdint.h>
typedef uint_least16_t char16_t;
#endif
Expand Down

0 comments on commit c3e843e

Please sign in to comment.