Parcourir la source

[Minor] Fix build on some systems

tags/3.7.2
Vsevolod Stakhov il y a 7 mois
Parent
révision
79edca0b0a
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6
    0
      contrib/backward-cpp/backward.hpp

+ 6
- 0
contrib/backward-cpp/backward.hpp Voir le fichier

@@ -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 *);

Chargement…
Annuler
Enregistrer