mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-22 00:06:59 +02:00
Simply some platform detection macros.
This commit is contained in:
+14
-12
@@ -3860,28 +3860,30 @@ typedef ma_uint16 wchar_t;
|
|||||||
typedef union ma_pthread_cond_t { char __data[48]; ma_uint64 __alignment; } ma_pthread_cond_t;
|
typedef union ma_pthread_cond_t { char __data[48]; ma_uint64 __alignment; } ma_pthread_cond_t;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __unix__
|
#if defined(__unix__)
|
||||||
#define MA_UNIX
|
#define MA_UNIX
|
||||||
#ifdef __ORBIS__
|
|
||||||
#define MA_ORBIS
|
|
||||||
#elif defined(__PROSPERO__)
|
|
||||||
#define MA_PROSPERO
|
|
||||||
#elif defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
|
||||||
#define MA_BSD
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
#ifdef __linux__
|
#if defined(__linux__)
|
||||||
#define MA_LINUX
|
#define MA_LINUX
|
||||||
#endif
|
#endif
|
||||||
#ifdef __APPLE__
|
#if defined(__APPLE__)
|
||||||
#define MA_APPLE
|
#define MA_APPLE
|
||||||
#endif
|
#endif
|
||||||
#ifdef __ANDROID__
|
#if defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
||||||
|
#define MA_BSD
|
||||||
|
#endif
|
||||||
|
#if defined(__ANDROID__)
|
||||||
#define MA_ANDROID
|
#define MA_ANDROID
|
||||||
#endif
|
#endif
|
||||||
#ifdef __EMSCRIPTEN__
|
#if defined(__EMSCRIPTEN__)
|
||||||
#define MA_EMSCRIPTEN
|
#define MA_EMSCRIPTEN
|
||||||
#endif
|
#endif
|
||||||
|
#if defined(__ORBIS__)
|
||||||
|
#define MA_ORBIS
|
||||||
|
#endif
|
||||||
|
#if defined(__PROSPERO__)
|
||||||
|
#define MA_PROSPERO
|
||||||
|
#endif
|
||||||
#if defined(__NX__)
|
#if defined(__NX__)
|
||||||
#define MA_NX
|
#define MA_NX
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user