|
@ -3,6 +3,7 @@ |
|
|
|
|
|
|
|
|
#if defined __linux__ || defined __linux |
|
|
#if defined __linux__ || defined __linux |
|
|
# define LINUX |
|
|
# define LINUX |
|
|
|
|
|
# define NOEXCEPT noexcept |
|
|
# include <sys/mman.h> |
|
|
# include <sys/mman.h> |
|
|
# include <unistd.h> |
|
|
# include <unistd.h> |
|
|
#include <execinfo.h> // Required by ErrorHandling.h |
|
|
#include <execinfo.h> // Required by ErrorHandling.h |
|
@ -12,6 +13,7 @@ |
|
|
# define GetCurrentDir getcwd |
|
|
# define GetCurrentDir getcwd |
|
|
#elif defined TARGET_OS_MAC || defined __apple__ || defined __APPLE__ |
|
|
#elif defined TARGET_OS_MAC || defined __apple__ || defined __APPLE__ |
|
|
# define MACOSX |
|
|
# define MACOSX |
|
|
|
|
|
# define NOEXCEPT noexcept |
|
|
# define _DARWIN_USE_64_BIT_INODE |
|
|
# define _DARWIN_USE_64_BIT_INODE |
|
|
# include <sys/mman.h> |
|
|
# include <sys/mman.h> |
|
|
# include <unistd.h> |
|
|
# include <unistd.h> |
|
@ -22,6 +24,7 @@ |
|
|
# define GetCurrentDir getcwd |
|
|
# define GetCurrentDir getcwd |
|
|
#elif defined _WIN32 || defined _WIN64 |
|
|
#elif defined _WIN32 || defined _WIN64 |
|
|
# define WINDOWS |
|
|
# define WINDOWS |
|
|
|
|
|
# define NOEXCEPT throw() |
|
|
# ifndef NOMINMAX |
|
|
# ifndef NOMINMAX |
|
|
# define NOMINMAX |
|
|
# define NOMINMAX |
|
|
# undef min |
|
|
# undef min |
|
|