header_utils
Loading...
Searching...
No Matches
platform_impl.inl
1
4
5namespace impl
6{
7
8#ifdef _WIN32
9 static constexpr inline ::ghassanpl::platform::operating_system operating_system = ::ghassanpl::platform::operating_system::windows;
10#ifdef _WIN64
11 static constexpr inline unsigned int operating_system_flags = (1 << ::ghassanpl::platform::operating_system_flags::sixty_four_bits);
12#else;
13 static constexpr inline unsigned int operating_system_flags = 0;
14#endif
15#endif
16
17#if defined(linux) || defined(__linux) || defined(__linux__)
18 static constexpr inline ::ghassanpl::platform::operating_system operating_system = ::ghassanpl::platform::operating_system::linux;
19 static constexpr inline unsigned int operating_system_flags = (1<<operating_system_flags::posix);
20#endif
21
22#if defined(__MACOSX__) || (defined(__APPLE__) && defined(__MACH__))
23 static constexpr inline ::ghassanpl::platform::operating_system operating_system = ::ghassanpl::platform::operating_system::macos;
24 static constexpr inline unsigned int operating_system_flags = (1<<operating_system_flags::posix);
25#endif
26
27#ifdef _MSC_VER
28 static constexpr inline ::ghassanpl::platform::compiler_type compiler_type = ::ghassanpl::platform::compiler_type::visual_studio;
29#endif
30
31}