Skip to content

Commit 65a74d7

Browse files
authored
[unwind] Make sure __STDC_FORMAT_MACROS is defined to ensure PRId64 is available
See llvm#102980 for further details.
1 parent 0c21ed4 commit 65a74d7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libunwind/src/DwarfParser.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
#ifndef __DWARF_PARSER_HPP__
1313
#define __DWARF_PARSER_HPP__
1414

15+
#ifndef __STDC_FORMAT_MACROS
16+
// Ensure PRId64 macro is available
17+
#define __STDC_FORMAT_MACROS 1
18+
#endif
1519
#include <inttypes.h>
1620
#include <stdint.h>
1721
#include <stdio.h>

0 commit comments

Comments
 (0)