25 lines
No EOL
590 B
C
25 lines
No EOL
590 B
C
#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 |