Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7f3c8f9c authored by Christopher Ferris's avatar Christopher Ferris
Browse files

Remove hack for mingw compiler.

The __BEGIN_DECLS/__END_DECLS macro is now defined for mingw.

Change-Id: Icd09b92a83e982ac0ed3eb34df4c1d79de21941e
parent ab918989
Loading
Loading
Loading
Loading
+0 −12
Original line number Diff line number Diff line
@@ -21,13 +21,7 @@
#include <stdbool.h>
#include <sys/types.h>

#ifdef USE_MINGW
#if defined(__cplusplus)
extern "C" {
#endif  // defined(__cplusplus)
#else
__BEGIN_DECLS
#endif  // USE_MINGW

// When the pid to be traced is set to this value, then trace the current
// process. If the tid value is not BACKTRACE_NO_TID, then the specified
@@ -123,12 +117,6 @@ void backtrace_format_frame_data(
/* Get the backtrace data structure associated with the context. */
const backtrace_t* backtrace_get_data(backtrace_context_t* context);

#ifdef USE_MINGW
#if defined(__cplusplus)
}
#endif  // defined(__cplusplus)
#else
__END_DECLS
#endif  // USE_MINGW

#endif /* _BACKTRACE_H */