🎉 begin project
This commit is contained in:
commit
8da6ddc689
29 changed files with 1261 additions and 0 deletions
25
Source/PlatformDetection.h
Normal file
25
Source/PlatformDetection.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#pragma once
|
||||
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
|
||||
#define VUI_WINDOWS 1
|
||||
#elif __APPLE__
|
||||
#include <TargetConditionals.h>
|
||||
#define VUI_APPLE 1
|
||||
#elif __ANDROID__
|
||||
#define VUI_ANDROID 1
|
||||
#elif __linux__
|
||||
#define VUI_LINUX 1
|
||||
#elif __unix__ // all unices not caught above
|
||||
#define VUI_UNIX 1
|
||||
#elif defined(_POSIX_VERSION)
|
||||
#define VUI_POSIX 1
|
||||
#else
|
||||
#error "Unknown compiler"
|
||||
#endif
|
||||
|
||||
#if defined(VUI_LINUX)
|
||||
#define VUI_OS_VALUE(l, w, m) l
|
||||
#elif defined(VUI_WINDOWS)
|
||||
#define VUI_OS_VALUE(l, w, m) w
|
||||
#elif defined(VUI_APPLE)
|
||||
#define VUI_OS_VALUE(l, w, m) m
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue