Skip to content

Commit

Permalink
Add PRId64
Browse files Browse the repository at this point in the history
  • Loading branch information
pablogs9 committed Jun 3, 2024
1 parent ca7a03c commit 9b5bd96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ extern "C"
#include "rcutils/error_handling.h"
#include "rcutils/snprintf.h"

// Define PRId64 for platforms that don't have it
#ifndef PRId64
#define PRId64 "lld"
#endif

rcutils_ret_t
rcutils_time_point_value_as_nanoseconds_string(
const rcutils_time_point_value_t * time_point,
Expand Down

0 comments on commit 9b5bd96

Please sign in to comment.