Skip to content

Commit

Permalink
[LLVMLibUnwind] Define __STDC_FORMAT_MACROS to make print macros av…
Browse files Browse the repository at this point in the history
…ailable

Fixes errors like
```
/workspace/srcdir/llvm-project-14.0.6.src/libunwind/src/DwarfParser.hpp:675:66: error: expected ‘)’ before ‘PRIu64’
```
  • Loading branch information
giordano committed Dec 30, 2022
1 parent d002e59 commit 16fad8f
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- DwarfParser.hpp.old
+++ DwarfParser.hpp
@@ -12,6 +12,7 @@
#ifndef __DWARF_PARSER_HPP__
#define __DWARF_PARSER_HPP__

+#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#include <stdint.h>
#include <stdio.h>

0 comments on commit 16fad8f

Please sign in to comment.