diff options
| author | louist103 <louist103@gmail.com> | 2022-07-26 16:04:08 -0400 |
|---|---|---|
| committer | Nicholas Estelami <NEstelami@users.noreply.github.com> | 2022-07-30 22:18:11 -0400 |
| commit | f3d1ac2f07b38a17d2ce3d5ede72f92b632298a5 (patch) | |
| tree | 8e3068af9d361db18ed7d21f662b8b2303a8cfd7 /ZAPD/Main.cpp | |
| parent | 497bf79892c9ad6166f247be0f14ced632523b79 (diff) | |
Check for POSIX instead of just linux
Diffstat (limited to 'ZAPD/Main.cpp')
| -rw-r--r-- | ZAPD/Main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
