You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

41 lines
1.2 KiB

#ifndef STORM_UTILITY_OSDETECTION_H_
#define STORM_UTILITY_OSDETECTION_H_
#if defined __linux__ || defined __linux
# define LINUX
# include <sys/mman.h>
#include <execinfo.h> // Required by ErrorHandling.h
#include <cxxabi.h> // Required by ErrorHandling.h
#include <sys/time.h> // Required by storm.cpp, Memory Usage
#include <sys/resource.h> // Required by storm.cpp, Memory Usage
#elif defined TARGET_OS_MAC || defined __apple__ || defined __APPLE__
# define MACOSX
# define _DARWIN_USE_64_BIT_INODE
# include <sys/mman.h>
# include <unistd.h>
# include <execinfo.h> // Required by ErrorHandling.h
# include <cxxabi.h> // Required by ErrorHandling.h
# include <sys/time.h> // Required by storm.cpp, Memory Usage
# include <sys/resource.h> // Required by storm.cpp, Memory Usage
#elif defined _WIN32 || defined _WIN64
# define WINDOWS
# ifndef NOMINMAX
# define NOMINMAX
# undef min
# undef max
# endif
# include <Windows.h>
# include <winnt.h>
# include <DbgHelp.h>
# include <Psapi.h>
# define strncpy strncpy_s
# define sscanf sscanf_s
// This disables Warning C4250 - Diamond Inheritance Dominance
#pragma warning(disable:4250)
#else
# error Could not detect Operating System
#endif
#endif // STORM_UTILITY_OSDETECTION_H_