Skip to content

Commit d911c12

Browse files
committed
Add PRId64
1 parent 0bbd765 commit d911c12

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/time.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ extern "C"
2828
#include "rcutils/error_handling.h"
2929
#include "rcutils/snprintf.h"
3030

31+
// Define PRId64 for platforms that don't have it
32+
#ifndef PRId64
33+
#define PRId64 "lld"
34+
#endif
35+
3136
rcutils_ret_t
3237
rcutils_time_point_value_as_nanoseconds_string(
3338
const rcutils_time_point_value_t * time_point,

0 commit comments

Comments
 (0)