aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-29 00:02:22 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-06 07:39:33 +0200
commitcc0f3bf97a5138e8c4f2e121f304eda7beac56a9 (patch)
tree4469465cfb323bf133b30be69089c5f2b38cdbfd /include
parent518407c80204dcaae91bb4afebea2355a589e595 (diff)
Add cygwin support
Diffstat (limited to 'include')
-rw-r--r--include/env.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/env.hpp b/include/env.hpp
index 9cdaf9d..72b7828 100644
--- a/include/env.hpp
+++ b/include/env.hpp
@@ -7,7 +7,7 @@
#define OS_TYPE_WINDOWS 0
#define OS_TYPE_LINUX 1
#define OS_TYPE_APPLE 2
-#define OS_TYPE_OPENBSD 2
+#define OS_TYPE_OPENBSD 3
#define OS_TYPE_HAIKU 10
#if defined(_WIN32) || defined(_WIN64)
@@ -54,6 +54,11 @@
#define OS_TYPE OS_TYPE_HAIKU
#endif
+#ifdef __CYGWIN__
+ #define OS_FAMILY OS_FAMILY_POSIX
+ #define OS_TYPE OS_TYPE_LINUX
+#endif
+
#if defined(__GNUC__)
#if defined(__x86_64__) || defined(__pc64__)
#define SIBS_ENV_64BIT