Commit 21cf0e38 authored by David Reid's avatar David Reid

Simply some platform detection macros.

parent 2944461a
...@@ -3860,28 +3860,30 @@ typedef ma_uint16 wchar_t; ...@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment