2009-05-02 05:04:19 -04:00
|
|
|
#if defined(WINDOWS)
|
2015-06-05 13:53:02 -04:00
|
|
|
#if defined(WINNT)
|
|
|
|
#include "os-windows.hpp"
|
|
|
|
#if defined(FACTOR_AMD64)
|
|
|
|
#include "os-windows.64.hpp"
|
|
|
|
#elif defined(FACTOR_X86)
|
|
|
|
#include "os-windows.32.hpp"
|
|
|
|
#else
|
|
|
|
#error "Unsupported Windows flavor"
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#error "Unsupported Windows flavor"
|
|
|
|
#endif
|
2013-05-11 22:24:50 -04:00
|
|
|
#else
|
2015-06-05 13:53:02 -04:00
|
|
|
#include "os-unix.hpp"
|
2013-05-11 22:24:50 -04:00
|
|
|
|
2015-06-05 13:53:02 -04:00
|
|
|
#ifdef __APPLE__
|
|
|
|
#include "os-macosx.hpp"
|
|
|
|
#include "mach_signal.hpp"
|
2009-05-02 05:04:19 -04:00
|
|
|
|
2015-06-05 13:53:02 -04:00
|
|
|
#ifdef FACTOR_X86
|
|
|
|
#include "os-macosx-x86.32.hpp"
|
|
|
|
#elif defined(FACTOR_AMD64)
|
|
|
|
#include "os-macosx-x86.64.hpp"
|
|
|
|
#else
|
|
|
|
#error "Unsupported Mac OS X flavor"
|
|
|
|
#endif
|
|
|
|
#else
|
|
|
|
#include "os-genunix.hpp"
|
2019-02-08 19:17:30 -05:00
|
|
|
#if defined(__FreeBSD__)
|
|
|
|
#define FACTOR_OS_STRING "freebsd"
|
|
|
|
#include "os-freebsd.hpp"
|
2019-02-09 14:39:25 -05:00
|
|
|
#if defined(FACTOR_X86)
|
|
|
|
#include "os-freebsd-x86.32.hpp"
|
|
|
|
#elif defined(FACTOR_AMD64)
|
|
|
|
#include "os-freebsd-x86.64.hpp"
|
|
|
|
#else
|
|
|
|
#error "Unsupported FreeBSD flavor"
|
|
|
|
#endif
|
2019-02-08 19:17:30 -05:00
|
|
|
#elif defined(__linux__)
|
2015-06-05 13:53:02 -04:00
|
|
|
#define FACTOR_OS_STRING "linux"
|
|
|
|
#include "os-linux.hpp"
|
|
|
|
#if defined(FACTOR_X86)
|
|
|
|
#include "os-linux-x86.32.hpp"
|
|
|
|
#elif defined(FACTOR_PPC64)
|
|
|
|
#include "os-linux-ppc.64.hpp"
|
|
|
|
#elif defined(FACTOR_PPC32)
|
|
|
|
#include "os-linux-ppc.32.hpp"
|
|
|
|
#elif defined(FACTOR_ARM)
|
|
|
|
#include "os-linux-arm.hpp"
|
|
|
|
#elif defined(FACTOR_AMD64)
|
|
|
|
#include "os-linux-x86.64.hpp"
|
|
|
|
#else
|
|
|
|
#error "Unsupported Linux flavor"
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
#endif
|
2009-05-02 05:04:19 -04:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(FACTOR_X86)
|
2015-06-05 13:53:02 -04:00
|
|
|
#include "cpu-x86.32.hpp"
|
|
|
|
#include "cpu-x86.hpp"
|
2009-05-02 05:04:19 -04:00
|
|
|
#elif defined(FACTOR_AMD64)
|
2015-06-05 13:53:02 -04:00
|
|
|
#include "cpu-x86.64.hpp"
|
|
|
|
#include "cpu-x86.hpp"
|
2009-05-02 05:04:19 -04:00
|
|
|
#elif defined(FACTOR_PPC)
|
2015-06-05 13:53:02 -04:00
|
|
|
#include "cpu-ppc.hpp"
|
2009-05-02 05:04:19 -04:00
|
|
|
#elif defined(FACTOR_ARM)
|
2015-06-05 13:53:02 -04:00
|
|
|
#include "cpu-arm.hpp"
|
2009-05-02 05:04:19 -04:00
|
|
|
#else
|
2015-06-05 13:53:02 -04:00
|
|
|
#error "Unsupported CPU"
|
2009-05-02 05:04:19 -04:00
|
|
|
#endif
|