Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions include/rosidl_dynamic_typesupport/uchar.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ extern "C" {
#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>
#undef __ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H__NEEDS_CHAR16_T_DECL
#include <stdint.h>
#ifndef __cplusplus
typedef uint_least16_t char16_t;
#endif
#endif



#ifdef __cplusplus
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
--- a/rosidl_dynamic_typesupport/include/rosidl_dynamic_typesupport/uchar.h
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this file used somewhere ?

+++ b/rosidl_dynamic_typesupport/include/rosidl_dynamic_typesupport/uchar.h
@@ -42,7 +42,9 @@
# 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
+# if !defined(__CHAR16_TYPE__)
typedef uint_least16_t char16_t;
+# endif
# endif
# else
# define __ROSIDL_DYNAMIC_TYPESUPPORT__UCHAR_H__NEEDS_CHAR16_T_DECL