diff options
author | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-09-02 19:37:56 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@hotmail.co.uk> | 2015-09-02 19:37:56 +0200 |
commit | 7664981f51ca47b342965649d64c831dc84da59c (patch) | |
tree | c20d46199ec725e62ec1705756ae427640e29e92 /src | |
parent | Merge pull request #2446 from cuberite/asyncpathfinder (diff) | |
parent | Include signal.h jointly for POSIX systems (diff) | |
download | cuberite-7664981f51ca47b342965649d64c831dc84da59c.tar cuberite-7664981f51ca47b342965649d64c831dc84da59c.tar.gz cuberite-7664981f51ca47b342965649d64c831dc84da59c.tar.bz2 cuberite-7664981f51ca47b342965649d64c831dc84da59c.tar.lz cuberite-7664981f51ca47b342965649d64c831dc84da59c.tar.xz cuberite-7664981f51ca47b342965649d64c831dc84da59c.tar.zst cuberite-7664981f51ca47b342965649d64c831dc84da59c.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/Root.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Root.cpp b/src/Root.cpp index ba895a9d6..dc90671fb 100644 --- a/src/Root.cpp +++ b/src/Root.cpp @@ -25,13 +25,15 @@ #include <iostream> -#ifdef _WIN32 +#if defined(_WIN32) #include <psapi.h> -#elif defined(__linux__) - #include <fstream> +#elif defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) #include <signal.h> -#elif defined(__APPLE__) - #include <mach/mach.h> + #if defined(__linux__) + #include <fstream> + #elif defined(__APPLE__) + #include <mach/mach.h> + #endif #endif |