Skip to content

Commit

Permalink
[Minor] Fix build on some systems
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Oct 12, 2023
1 parent 8103287 commit 79edca0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions contrib/backward-cpp/backward.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,13 @@ typedef SSIZE_T ssize_t;

#if BACKWARD_HAS_UNWIND == 1

#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#include <unwind.h>
#undef _GNU_SOURCE
#else
#include <unwind.h>
#endif
// while gcc's unwind.h defines something like that:
// extern _Unwind_Ptr _Unwind_GetIP (struct _Unwind_Context *);
// extern _Unwind_Ptr _Unwind_GetIPInfo (struct _Unwind_Context *, int *);
Expand Down

0 comments on commit 79edca0

Please sign in to comment.