diff options
-rw-r--r-- | compat/sysexits.hpp | 14 | ||||
-rw-r--r-- | variant/default/main-window.cpp | 20 |
2 files changed, 15 insertions, 19 deletions
diff --git a/compat/sysexits.hpp b/compat/sysexits.hpp new file mode 100644 index 00000000..33f19b9d --- /dev/null +++ b/compat/sysexits.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include <cstdlib> // for EXIT_SUCCESS, EXIT_FAILRUE + +/* FreeBSD sysexits(3) + * + * The input data was incorrect in some way. This + * should only be used for user's data and not system + * files. + */ + +#if !defined EX_OSFILE +# define EX_OSFILE 72 +#endif diff --git a/variant/default/main-window.cpp b/variant/default/main-window.cpp index 708db9fc..0112e2cc 100644 --- a/variant/default/main-window.cpp +++ b/variant/default/main-window.cpp @@ -16,6 +16,7 @@ #include "compat/macros.hpp" #include "compat/library-path.hpp" #include "compat/math.hpp" +#include "compat/sysexits.hpp" #include <algorithm> #include <iterator> @@ -30,25 +31,6 @@ extern "C" const char* const opentrack_version; using namespace options::globals; using namespace options; -#if !defined EXIT_SUCCESS -# define EXIT_SUCCESS 0 -#endif - -#if !defined EXIT_FAILURE -# define EXIT_FAILURE 1 -#endif - -/* FreeBSD sysexits(3) - * - * The input data was incorrect in some way. This - * should only be used for user's data and not system - * files. - */ - -#if !defined EX_OSFILE -# define EX_OSFILE 72 -#endif - main_window::main_window() : State(OPENTRACK_BASE_PATH + OPENTRACK_LIBRARY_PATH) { ui.setupUi(this); |