summaryrefslogtreecommitdiffhomepage
path: root/defs.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'defs.hpp')
-rw-r--r--defs.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/defs.hpp b/defs.hpp
index 6fca3bb0..758345f9 100644
--- a/defs.hpp
+++ b/defs.hpp
@@ -10,6 +10,17 @@
# define FUNCTION_NAME __PRETTY_FUNCTION__
#endif
+#ifdef _WIN32
+# define EX_OK 0 /* successful termination */
+# define EX_USAGE 64 /* command line usage error */
+# define EX_DATAERR 65 /* data format error */
+# define EX_SOFTWARE 70 /* internal software error */
+# define EX_CANTCREAT 73 /* can't create (user) output file */
+# define EX_IOERR 74 /* input/output error */
+#else
+# include <sysexits.h>
+#endif
+
namespace Magnum::Examples {
using size_t = std::size_t;