Skip to content

Commit 201ea95

Browse files
pablogs9Carlosespicur
authored andcommitted
Fix struct tm init
1 parent cd13217 commit 201ea95

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

.vscode/settings.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"files.associations": {
3+
"*.uml": "plantuml",
4+
"*.in": "c"
5+
}
6+
}

include/rcutils/configuration_flags.h.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ extern "C"
1010
#cmakedefine RCUTILS_NO_FILESYSTEM
1111
#cmakedefine RCUTILS_AVOID_DYNAMIC_ALLOCATION
1212
#cmakedefine RCUTILS_NO_THREAD_SUPPORT
13+
#cmakedefine RCUTILS_MICROROS
1314

1415
#ifdef __cplusplus
1516
}

src/time.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ rcutils_time_point_value_as_date_string(
5252
char * str,
5353
size_t str_size)
5454
{
55+
#ifdef RCUTILS_MICROROS
56+
(void)time_point;
57+
(void)str;
58+
(void)str_size;
59+
60+
return RCUTILS_RET_ERROR;
61+
#else
5562
RCUTILS_CHECK_ARGUMENT_FOR_NULL(time_point, RCUTILS_RET_INVALID_ARGUMENT);
5663
RCUTILS_CHECK_ARGUMENT_FOR_NULL(str, RCUTILS_RET_INVALID_ARGUMENT);
5764
if (0 == str_size) {
@@ -99,6 +106,7 @@ rcutils_time_point_value_as_date_string(
99106
}
100107

101108
return RCUTILS_RET_OK;
109+
#endif // RCUTILS_MICROROS
102110
}
103111

104112
rcutils_ret_t

0 commit comments

Comments
 (0)