ZFFramework
 
Loading...
Searching...
No Matches
ZFImpl_sys_Posix.h
1#ifndef _ZFI_ZFImpl_sys_Posix_h_
2#define _ZFI_ZFImpl_sys_Posix_h_
3
4#include "ZFCore/ZFCoreDef.h"
5
6#ifdef __APPLE__
7 #include "TargetConditionals.h"
8#endif
9
11
17#ifndef ZF_ENV_FORCE_sys_Posix
18 #define ZF_ENV_FORCE_sys_Posix 0
19#else
20 #undef ZF_ENV_FORCE_sys_Posix
21 #define ZF_ENV_FORCE_sys_Posix 1
22#endif
23
29#ifndef ZF_ENV_FORCE_not_sys_Posix
30 #define ZF_ENV_FORCE_not_sys_Posix 0
31#else
32 #undef ZF_ENV_FORCE_not_sys_Posix
33 #define ZF_ENV_FORCE_not_sys_Posix 1
34#endif
35
39#if !ZF_ENV_FORCE_not_sys_Posix && ((0 \
40 || defined(__unix__) \
41 || defined(__linux) \
42 || defined(__APPLE__) \
43 ) || ZF_ENV_FORCE_sys_Posix)
44 #define ZF_ENV_sys_Posix 1
45#else
46 #define ZF_ENV_sys_Posix 0
47#endif
48
49// ============================================================
50
56#ifndef ZF_ENV_FORCE_sys_MacOS
57 #define ZF_ENV_FORCE_sys_MacOS 0
58#else
59 #undef ZF_ENV_FORCE_sys_MacOS
60 #define ZF_ENV_FORCE_sys_MacOS 1
61#endif
62
68#ifndef ZF_ENV_FORCE_not_sys_MacOS
69 #define ZF_ENV_FORCE_not_sys_MacOS 0
70#else
71 #undef ZF_ENV_FORCE_not_sys_MacOS
72 #define ZF_ENV_FORCE_not_sys_MacOS 1
73#endif
74
78#if !ZF_ENV_FORCE_not_sys_MacOS && ((0 \
79 || (defined(__APPLE__) && TARGET_OS_MAC) \
80 ) || ZF_ENV_FORCE_sys_MacOS)
81 #define ZF_ENV_sys_MacOS 1
82#else
83 #define ZF_ENV_sys_MacOS 0
84#endif
85
87#endif // #ifndef _ZFI_ZFImpl_sys_Posix_h_
88
necessary header file for all types
#define ZF_NAMESPACE_GLOBAL_BEGIN
begin namespace ZFFramework
Definition ZFNamespace.h:97
#define ZF_NAMESPACE_GLOBAL_END
end namespace ZFFramework
Definition ZFNamespace.h:98