mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 00:34:03 +02:00
Fix Windows/Cosmopolitan build.
This commit is contained in:
@@ -17,6 +17,7 @@ eliminate all of the content in this file.
|
|||||||
|
|
||||||
typedef uint64_t HWND;
|
typedef uint64_t HWND;
|
||||||
typedef uint64_t HANDLE;
|
typedef uint64_t HANDLE;
|
||||||
|
typedef uint64_t HKEY;
|
||||||
typedef uint32_t HRESULT;
|
typedef uint32_t HRESULT;
|
||||||
typedef uint8_t BYTE;
|
typedef uint8_t BYTE;
|
||||||
typedef uint16_t WORD;
|
typedef uint16_t WORD;
|
||||||
@@ -24,7 +25,8 @@ typedef uint32_t DWORD;
|
|||||||
typedef uint64_t DWORDLONG;
|
typedef uint64_t DWORDLONG;
|
||||||
typedef int32_t BOOL;
|
typedef int32_t BOOL;
|
||||||
typedef int32_t LONG; /* `long` is always 32-bit on Windows. */
|
typedef int32_t LONG; /* `long` is always 32-bit on Windows. */
|
||||||
typedef uint32_t ULONG;
|
typedef int64_t LONGLONG;
|
||||||
|
typedef uint32_t ULONG; /* `long` is always 32-bit on Windows. */
|
||||||
typedef uint64_t ULONGLONG;
|
typedef uint64_t ULONGLONG;
|
||||||
typedef char16_t WCHAR;
|
typedef char16_t WCHAR;
|
||||||
|
|
||||||
@@ -71,6 +73,8 @@ typedef struct
|
|||||||
unsigned char Data4[8];
|
unsigned char Data4[8];
|
||||||
} GUID, IID;
|
} GUID, IID;
|
||||||
|
|
||||||
|
typedef int64_t LARGE_INTEGER;
|
||||||
|
|
||||||
static HANDLE CreateEventA(struct NtSecurityAttributes* lpEventAttributes, bool32 bManualReset, bool32 bInitialState, const char* lpName)
|
static HANDLE CreateEventA(struct NtSecurityAttributes* lpEventAttributes, bool32 bManualReset, bool32 bInitialState, const char* lpName)
|
||||||
{
|
{
|
||||||
assert(lpName == NULL); /* If this is ever triggered we'll need to do a ANSI-to-Unicode conversion. */
|
assert(lpName == NULL); /* If this is ever triggered we'll need to do a ANSI-to-Unicode conversion. */
|
||||||
|
|||||||
+1
-1
@@ -18188,7 +18188,7 @@ typedef LONG (WINAPI * MA_PFN_RegQueryValueExA)(HKEY hKey, const char* lpValu
|
|||||||
Timing
|
Timing
|
||||||
|
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
#ifdef MA_WIN32
|
#if defined(MA_WIN32) && !defined(MA_POSIX)
|
||||||
static LARGE_INTEGER g_ma_TimerFrequency; /* <-- Initialized to zero since it's static. */
|
static LARGE_INTEGER g_ma_TimerFrequency; /* <-- Initialized to zero since it's static. */
|
||||||
void ma_timer_init(ma_timer* pTimer)
|
void ma_timer_init(ma_timer* pTimer)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user