mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-24 09:14:04 +02:00
Fix compilation errors on POSIX systems and MA_NO_DEVICE_IO.
Public issue https://github.com/dr-soft/miniaudio/issues/171
This commit is contained in:
@@ -1574,11 +1574,7 @@ extern "C" {
|
|||||||
#endif
|
#endif
|
||||||
#else
|
#else
|
||||||
#define MA_POSIX
|
#define MA_POSIX
|
||||||
|
|
||||||
/* We only use multi-threading with the device IO API, so no need to include these headers otherwise. */
|
|
||||||
#if !defined(MA_NO_DEVICE_IO)
|
|
||||||
#include <pthread.h> /* Unfortunate #include, but needed for pthread_t, pthread_mutex_t and pthread_cond_t types. */
|
#include <pthread.h> /* Unfortunate #include, but needed for pthread_t, pthread_mutex_t and pthread_cond_t types. */
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __unix__
|
#ifdef __unix__
|
||||||
#define MA_UNIX
|
#define MA_UNIX
|
||||||
|
|||||||
Reference in New Issue
Block a user