From f3d1ac2f07b38a17d2ce3d5ede72f92b632298a5 Mon Sep 17 00:00:00 2001 From: louist103 Date: Tue, 26 Jul 2022 16:04:08 -0400 Subject: Check for POSIX instead of just linux --- ZAPD/Main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ZAPD/Main.cpp') diff --git a/ZAPD/Main.cpp b/ZAPD/Main.cpp index 321ba01..648ef18 100644 --- a/ZAPD/Main.cpp +++ b/ZAPD/Main.cpp @@ -123,7 +123,7 @@ int Main(int argc, char* argv[]) } else if (arg == "-eh") // Enable Error Handler { -#if defined(__linux__) +#if HAS_POSIX == 1 signal(SIGSEGV, ErrorHandler); signal(SIGABRT, ErrorHandler); #elif !defined(_MSC_VER) @@ -266,7 +266,7 @@ int Main(int argc, char* argv[]) } // Windows doesn't make it easy to get a stack trace from just a signal. So we need to do this messy -// stuf for just windows. +// stuff for just windows. int main(int argc, char* argv[]) { #ifdef _MSC_VER -- cgit v1.2.3