ROOT-Sim core  3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
platform.h
Go to the documentation of this file.
1 
14 #pragma once
15 
16 #if defined(_WIN32)
17 #define __WINDOWS
18 // windows specific :)))
19 #define _CRT_SECURE_NO_WARNINGS
20 #define _pure
21 #elif defined(__unix__) || defined(__unix) || (defined(__APPLE__) && defined(__MACH__))
22 #define __POSIX
23 // todo get rid of this: right now it is needed for pthread_setaffinity_np()
24 #define _GNU_SOURCE
25 #define _pure __attribute__((pure))
26 
27 #if defined(__linux__)
28 #define __LINUX
29 #endif
30 
31 #if defined(__APPLE__) && defined(__MACH__)
32 #define __MACOS
33 #endif
34 
35 #else
36 #error Unsupported operating system
37 #endif