 |
Stroika Library 3.0d16
|
|
|
Loading...
Searching...
No Matches
4#ifndef _Stroika_Foundation_Common_Platform_Common_h_
5#define _Stroika_Foundation_Common_Platform_Common_h_ 1
20#ifndef qStroika_Foundation_Common_Platform_Windows
21#if defined(_WINDOWS) || defined(_WIN64) || defined(_WIN32)
22#define qStroika_Foundation_Common_Platform_Windows 1
24#define qStroika_Foundation_Common_Platform_Windows 0
31#if defined(_WIN32) && !defined(_WIN64)
32#define qStroika_Foundation_Common_Platform_Win32 1
34#define qStroika_Foundation_Common_Platform_Win32 0
41#define qStroika_Foundation_Common_Platform_Win64 1
43#define qStroika_Foundation_Common_Platform_Win64 0
49#ifndef qStroika_Foundation_Common_Platform_POSIX
51#if defined(_POSIX_SOURCE) || defined(__unix__) || (defined(__APPLE__) && defined(__MACH__)) || defined(__linux)
52#define qStroika_Foundation_Common_Platform_POSIX 1
54#define qStroika_Foundation_Common_Platform_POSIX 0
61#ifndef qStroika_Foundation_Common_Platform_Linux
63#define qStroika_Foundation_Common_Platform_Linux 1
65#define qStroika_Foundation_Common_Platform_Linux 0
72#ifndef qStroika_Foundation_Common_Platform_MacOS
73#if defined(__APPLE__) && defined(__MACH__)
74#define qStroika_Foundation_Common_Platform_MacOS 1
76#define qStroika_Foundation_Common_Platform_MacOS 0
84#if qStroika_Foundation_Common_Platform_Windows != (qStroika_Foundation_Common_Platform_Win32 || qStroika_Foundation_Common_Platform_Win64)
85#warning "INCONSISTENT DEFINES"
87#if qStroika_Foundation_Common_Platform_Windows && qStroika_Foundation_Common_Platform_POSIX
88#warning "Shouldn't have both Windows and POSIX platform flags set"
90#if qStroika_Foundation_Common_Platform_Windows && qStroika_Foundation_Common_Platform_MacOS
91#warning "Shouldn't have both Windows and MacOS platform flags set"
99#if qStroika_Foundation_Common_Platform_Windows
113#define WIN32_LEAN_AND_MEAN 1
121#define qHas_pid_t Stroika_Foundation_Common_Platform_POSIX
123#ifndef qSupport_Proc_Filesystem
124#if defined(__linux__)
125#define qSupport_Proc_Filesystem 1
127#define qSupport_Proc_Filesystem 0
133#define qPlatform_Windows qStroika_Foundation_Common_Platform_Windows
134#define qPlatform_Win32 qStroika_Foundation_Common_Platform_Win32
135#define qPlatform_Win64 qStroika_Foundation_Common_Platform_Win64
136#define qPlatform_POSIX qStroika_Foundation_Common_Platform_POSIX
137#define qPlatform_Linux qStroika_Foundation_Common_Platform_Linux
138#define qPlatform_MacOS qStroika_Foundation_Common_Platform_MacOS
142#if defined(_WINDOWS) || defined(_WIN64) || defined(_WIN32)
143#define qRCBWA_Platform_Windows 1
145#define qRCBWA_Platform_Windows 0