From 1c2c1c27e818fdf847c63aec03c36184941c005b Mon Sep 17 00:00:00 2001 From: Stefan Haustein Date: Wed, 14 Feb 2024 19:23:02 +0100 Subject: [PATCH] Always define the exit codes locally -- even on posix. --- src/tiv.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/tiv.cpp b/src/tiv.cpp index 7178fad..1dbe092 100644 --- a/src/tiv.cpp +++ b/src/tiv.cpp @@ -51,14 +51,13 @@ #include // Error explanation, for some reason #include -// Exit codes -#include #endif #ifdef _WIN32 #include // Error explanation #include +#endif // Following codes copied from /usr/include/sysexits.h, // license: https://opensource.org/license/BSD-3-clause/ @@ -73,7 +72,6 @@ #define EX_TEMPFAIL 75 /* temp failure; user is invited to retry */ #define EX_NOPERM 77 /* permission denied */ #define EX_CONFIG 78 /* configuration error */ -#endif // Implementation of flag representation for flags in the main() method constexpr int FLAG_FG = 1;