Support Class Library
A set of tools providing classes and utility
posix.h
Go to the documentation of this file.
1 #pragma once
3 
8 #if defined(_POSIX_VERSION)
9  #define SCL_PLATFORM_POSIX (!SCL_PLATFORM_UNIX)
10 #else
11  #define SCL_PLATFORM_POSIX false
12 #endif
13 
14 namespace scl{
15  namespace detect{
16  namespace platform{
21  constexpr bool posix = SCL_PLATFORM_POSIX;
22  }
23  }
24 }
Global namespace of the SCL.
Definition: alias.hpp:3
#define SCL_PLATFORM_POSIX
Macro that detects whether or not the platform is a POSIX platform (that is not a Unix platform) ...
Definition: posix.h:11
constexpr bool posix
Checks whether or not the platform is a POSIX platform (that is not a Unix platform) ...
Definition: posix.h:21