aboutsummaryrefslogtreecommitdiff
path: root/include/env.hpp
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2017-12-10 01:10:48 +0100
committerdec05eba <dec05eba@protonmail.com>2017-12-10 01:12:08 +0100
commit1d3e221a7a20bfd03517e3ae1e35e4a309a69b6a (patch)
treefdb38039d12cf38e9ac6102118727b78437cf3db /include/env.hpp
parent2ed7d0b09caa872e44e2eb09b09b2387e93f9b34 (diff)
Add support for dependencies in global lib dir
Global lib dir is located at ~/.sibs/lib TODO: If global lib dir doesn't exist, download it from github/server
Diffstat (limited to 'include/env.hpp')
-rw-r--r--include/env.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/env.hpp b/include/env.hpp
index 5d0a163..325db6e 100644
--- a/include/env.hpp
+++ b/include/env.hpp
@@ -1,12 +1,20 @@
#ifndef SIBS_ENV_HPP
#define SIBS_ENV_HPP
+#define OS_FAMILY_WINDOWS 0
+#define OS_FAMILY_POSIX 1
+
#if defined(_WIN32) || defined(_WIN64)
#if defined(_WIN64)
#define CISB_ENV_64BIT
#else
#define CISB_ENV_32BIT
#endif
+ #define OS_FAMILY OS_FAMILY_WINDOWS
+#endif
+
+#if defined(__linux__) || defined(__unix__) || defined(__APPLE__) || defined(_POSIX_VERSION)
+ #define OS_FAMILY OS_FAMILY_POSIX
#endif
#if defined(__GNUC__)
@@ -21,4 +29,8 @@
#error "System is not detected as either 32-bit or 64-bit"
#endif
+#if !defined(OS_FAMILY)
+ #error "System not support. Only Windows and Posix systems support"
+#endif
+
#endif // SIBS_ENV_HPP