 |
Stroika Library 3.0d25
|
|
|
Loading...
Searching...
No Matches
4#ifndef _Stroika_Foundation_Common_Platform_Common_h_
5#define _Stroika_Foundation_Common_Platform_Common_h_ 1
23#ifndef qStroika_Platform_Windows
24#if defined(_WINDOWS) || defined(_WIN64) || defined(_WIN32)
25#define qStroika_Platform_Windows 1
27#define qStroika_Platform_Windows 0
34#if defined(_WIN32) && !defined(_WIN64)
35#define qStroika_Platform_Win32 1
37#define qStroika_Platform_Win32 0
44#define qStroika_Platform_Win64 1
46#define qStroika_Platform_Win64 0
52#ifndef qStroika_Platform_POSIX
54#if defined(_POSIX_SOURCE) || defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__linux)
55#define qStroika_Platform_POSIX 1
57#define qStroika_Platform_POSIX 0
64#ifndef qStroika_Platform_Linux
66#define qStroika_Platform_Linux 1
68#define qStroika_Platform_Linux 0
75#ifndef qStroika_Platform_MacOS
76#if defined(__APPLE__) && defined(__MACH__)
77#define qStroika_Platform_MacOS 1
79#define qStroika_Platform_MacOS 0
87#if qStroika_Platform_Windows != (qStroika_Platform_Win32 || qStroika_Platform_Win64)
88#warning "INCONSISTENT DEFINES"
90#if qStroika_Platform_Windows && qStroika_Platform_POSIX
91#warning "Shouldn't have both Windows and POSIX platform flags set"
93#if qStroika_Platform_Windows && qStroika_Platform_MacOS
94#warning "Shouldn't have both Windows and MacOS platform flags set"
102#if qStroika_Platform_Windows
116#define WIN32_LEAN_AND_MEAN 1
124#ifndef qStroika_FeatureSupported_ProcFilesystem
125#if defined(qSupport_Proc_Filesystem)
126#define qStroika_FeatureSupported_ProcFilesystem qSupport_Proc_Filesystem
127#elif defined(__linux__)
128#define qStroika_FeatureSupported_ProcFilesystem 1
130#define qStroika_FeatureSupported_ProcFilesystem 0
137#define qStroika_Foundation_Common_Platform_Windows qStroika_Platform_Windows
138#define qStroika_Foundation_Common_Platform_Win32 qStroika_Platform_Win32
139#define qStroika_Foundation_Common_Platform_Win64 qStroika_Platform_Win64
140#define qStroika_Foundation_Common_Platform_POSIX qStroika_Platform_POSIX
141#define qStroika_Foundation_Common_Platform_Linux qStroika_Platform_Linux
142#define qStroika_Foundation_Common_Platform_MacOS qStroika_Platform_MacOS
144#ifndef qSupport_Proc_Filesystem
145#define qSupport_Proc_Filesystem qStroika_FeatureSupported_ProcFilesystem
148#define qHas_pid_t qStroika_Platform_POSIX
150#define qRCBWA_Platform_Windows qStroika_Platform_Windows
154#define qPlatform_Windows qStroika_Platform_Windows
155#define qPlatform_Win32 qStroika_Platform_Win32
156#define qPlatform_Win64 qStroika_Platform_Win64
157#define qPlatform_POSIX qStroika_Platform_POSIX
158#define qPlatform_Linux qStroika_Platform_Linux
159#define qPlatform_MacOS qStroika_Platform_MacOS