Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
miniaudio
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
miniaudio
Commits
18b4ac24
Commit
18b4ac24
authored
Mar 18, 2023
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Windows/Cosmopolitan build.
parent
f192b25e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
extras/cosmopolitan/include/windows.h
extras/cosmopolitan/include/windows.h
+5
-1
miniaudio.h
miniaudio.h
+1
-1
No files found.
extras/cosmopolitan/include/windows.h
View file @
18b4ac24
...
...
@@ -17,6 +17,7 @@ eliminate all of the content in this file.
typedef
uint64_t
HWND
;
typedef
uint64_t
HANDLE
;
typedef
uint64_t
HKEY
;
typedef
uint32_t
HRESULT
;
typedef
uint8_t
BYTE
;
typedef
uint16_t
WORD
;
...
...
@@ -24,7 +25,8 @@ typedef uint32_t DWORD;
typedef
uint64_t
DWORDLONG
;
typedef
int32_t
BOOL
;
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
char16_t
WCHAR
;
...
...
@@ -71,6 +73,8 @@ typedef struct
unsigned
char
Data4
[
8
];
}
GUID
,
IID
;
typedef
int64_t
LARGE_INTEGER
;
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. */
...
...
miniaudio.h
View file @
18b4ac24
...
...
@@ -18188,7 +18188,7 @@ typedef LONG (WINAPI * MA_PFN_RegQueryValueExA)(HKEY hKey, const char* lpValu
Timing
*******************************************************************************/
#if
def MA_WIN32
#if
defined(MA_WIN32) && !defined(MA_POSIX)
static LARGE_INTEGER g_ma_TimerFrequency; /* <-- Initialized to zero since it's static. */
void ma_timer_init(ma_timer* pTimer)
{
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment