aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksi Lindeman <dec05eba@protonmail.com>2018-10-30 11:58:32 +0100
committerAleksi Lindeman <dec05eba@protonmail.com>2018-10-30 11:58:32 +0100
commitd20d7198f562bef49a6f0e74cd4a6c71fe71c1fc (patch)
tree0cc02b4c17c5fa5150a8ba5456f266b0bd417d28
parentc1322a271104d037684fb21e2cdced47c566a3c8 (diff)
Fix for emscripten and other platforms
-rw-r--r--include/env.hpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/include/env.hpp b/include/env.hpp
index 57ae068..1e10280 100644
--- a/include/env.hpp
+++ b/include/env.hpp
@@ -3,9 +3,6 @@
#define OS_FAMILY_WINDOWS 0
#define OS_FAMILY_POSIX 1
-#define OS_TYPE_WINDOWS 0
-#define OS_TYPE_LINUX 1
-
#if defined(_WIN32) || defined(_WIN64)
#if defined(_WIN64)
#define SYS_ENV_64BIT
@@ -13,7 +10,6 @@
#define SYS_ENV_32BIT
#endif
#define OS_FAMILY OS_FAMILY_WINDOWS
- #define OS_TYPE OS_TYPE_WINDOWS
#ifndef UNICODE
#define UNICODE
@@ -33,27 +29,3 @@
#if defined(__linux__) || defined(__unix__) || defined(__APPLE__) || defined(_POSIX_VERSION)
#define OS_FAMILY OS_FAMILY_POSIX
#endif
-
-#ifdef __linux__
- #define OS_TYPE OS_TYPE_LINUX
-#endif
-
-#if defined(__GNUC__)
- #if defined(__x86_64__) || defined(__pc64__)
- #define SYS_ENV_64BIT
- #else
- #define SYS_ENV_32BIT
- #endif
-#endif
-
-#if !defined(SYS_ENV_32BIT) && !defined(SYS_ENV_64BIT)
- #error "System is not detected as either 32-bit or 64-bit"
-#endif
-
-#if !defined(OS_FAMILY)
- #error "System not supported. Only Windows and Posix systems supported right now"
-#endif
-
-#if !defined(OS_TYPE)
- #error "System not supported. Only Windows and linux systems supported right now"
-#endif