From cc0f3bf97a5138e8c4f2e121f304eda7beac56a9 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 29 Oct 2018 00:02:22 +0100 Subject: Add cygwin support --- include/env.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3