Skip to content

Commit 0981471

Browse files
committed
[compiler-rt] Define __STDC_FORMAT_MACROS to ensure PRId64 is available
1 parent b368404 commit 0981471

File tree

1 file changed

+4
-0
lines changed
  • compiler-rt/lib/scudo/standalone

1 file changed

+4
-0
lines changed

compiler-rt/lib/scudo/standalone/timing.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
#include "string_utils.h"
1515
#include "thread_annotations.h"
1616

17+
#ifndef __STDC_FORMAT_MACROS
18+
// Ensure PRId64 macro is available
19+
#define __STDC_FORMAT_MACROS 1
20+
#endif
1721
#include <inttypes.h>
1822
#include <string.h>
1923

0 commit comments

Comments
 (0)