mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 18:45:55 +08:00
Fix build for unixes
This commit is contained in:
parent
e3000c5305
commit
d3de14170a
@ -4,6 +4,11 @@
|
|||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#include "TryCatchSignalSEH.hpp"
|
#include "TryCatchSignalSEH.hpp"
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
#include <csignal>
|
||||||
|
|
||||||
|
using SignalT = decltype (SIGSEGV);
|
||||||
|
|
||||||
template<class TryFn, class CatchFn, int N>
|
template<class TryFn, class CatchFn, int N>
|
||||||
void try_catch_signal(const SignalT (&/*sigs*/)[N], TryFn &&/*fn*/, CatchFn &&/*cfn*/)
|
void try_catch_signal(const SignalT (&/*sigs*/)[N], TryFn &&/*fn*/, CatchFn &&/*cfn*/)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user