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
959de2e9
Commit
959de2e9
authored
Dec 11, 2021
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update dr_libs and c89atomic.
This fixes some warnings when compiling with Clang on Windows.
parent
a220ae1a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
miniaudio.h
miniaudio.h
+12
-12
No files found.
miniaudio.h
View file @
959de2e9
...
@@ -3364,7 +3364,7 @@ typedef signed short ma_int16;
...
@@ -3364,7 +3364,7 @@ typedef signed short ma_int16;
typedef unsigned short ma_uint16;
typedef unsigned short ma_uint16;
typedef signed int ma_int32;
typedef signed int ma_int32;
typedef unsigned int ma_uint32;
typedef unsigned int ma_uint32;
#if defined(_MSC_VER)
#if defined(_MSC_VER)
&& !defined(__clang__)
typedef signed __int64 ma_int64;
typedef signed __int64 ma_int64;
typedef unsigned __int64 ma_uint64;
typedef unsigned __int64 ma_uint64;
#else
#else
...
@@ -12707,7 +12707,7 @@ typedef signed short c89atomic_int16;
...
@@ -12707,7 +12707,7 @@ typedef signed short c89atomic_int16;
typedef unsigned short c89atomic_uint16;
typedef unsigned short c89atomic_uint16;
typedef signed int c89atomic_int32;
typedef signed int c89atomic_int32;
typedef unsigned int c89atomic_uint32;
typedef unsigned int c89atomic_uint32;
#if defined(_MSC_VER)
#if defined(_MSC_VER)
&& !defined(__clang__)
typedef signed __int64 c89atomic_int64;
typedef signed __int64 c89atomic_int64;
typedef unsigned __int64 c89atomic_uint64;
typedef unsigned __int64 c89atomic_uint64;
#else
#else
...
@@ -14052,11 +14052,11 @@ typedef unsigned char c89atomic_bool;
...
@@ -14052,11 +14052,11 @@ typedef unsigned char c89atomic_bool;
{
{
return (void*)c89atomic_exchange_explicit_64((volatile c89atomic_uint64*)dst, (c89atomic_uint64)src, order);
return (void*)c89atomic_exchange_explicit_64((volatile c89atomic_uint64*)dst, (c89atomic_uint64)src, order);
}
}
static C89ATOMIC_INLINE c89atomic_bool c89atomic_compare_exchange_strong_explicit_ptr(volatile void** dst, vo
latile vo
id** expected, void* desired, c89atomic_memory_order successOrder, c89atomic_memory_order failureOrder)
static C89ATOMIC_INLINE c89atomic_bool c89atomic_compare_exchange_strong_explicit_ptr(volatile void** dst, void** expected, void* desired, c89atomic_memory_order successOrder, c89atomic_memory_order failureOrder)
{
{
return c89atomic_compare_exchange_strong_explicit_64((volatile c89atomic_uint64*)dst, (c89atomic_uint64*)expected, (c89atomic_uint64)desired, successOrder, failureOrder);
return c89atomic_compare_exchange_strong_explicit_64((volatile c89atomic_uint64*)dst, (c89atomic_uint64*)expected, (c89atomic_uint64)desired, successOrder, failureOrder);
}
}
static C89ATOMIC_INLINE c89atomic_bool c89atomic_compare_exchange_weak_explicit_ptr(volatile void** dst, vo
latile vo
id** expected, void* desired, c89atomic_memory_order successOrder, c89atomic_memory_order failureOrder)
static C89ATOMIC_INLINE c89atomic_bool c89atomic_compare_exchange_weak_explicit_ptr(volatile void** dst, void** expected, void* desired, c89atomic_memory_order successOrder, c89atomic_memory_order failureOrder)
{
{
return c89atomic_compare_exchange_weak_explicit_64((volatile c89atomic_uint64*)dst, (c89atomic_uint64*)expected, (c89atomic_uint64)desired, successOrder, failureOrder);
return c89atomic_compare_exchange_weak_explicit_64((volatile c89atomic_uint64*)dst, (c89atomic_uint64*)expected, (c89atomic_uint64)desired, successOrder, failureOrder);
}
}
...
@@ -14085,7 +14085,7 @@ typedef unsigned char c89atomic_bool;
...
@@ -14085,7 +14085,7 @@ typedef unsigned char c89atomic_bool;
{
{
return c89atomic_compare_exchange_strong_explicit_32((volatile c89atomic_uint32*)dst, (c89atomic_uint32*)expected, (c89atomic_uint32)desired, successOrder, failureOrder);
return c89atomic_compare_exchange_strong_explicit_32((volatile c89atomic_uint32*)dst, (c89atomic_uint32*)expected, (c89atomic_uint32)desired, successOrder, failureOrder);
}
}
static C89ATOMIC_INLINE c89atomic_bool c89atomic_compare_exchange_weak_explicit_ptr(volatile void** dst, vo
latile vo
id** expected, void* desired, c89atomic_memory_order successOrder, c89atomic_memory_order failureOrder)
static C89ATOMIC_INLINE c89atomic_bool c89atomic_compare_exchange_weak_explicit_ptr(volatile void** dst, void** expected, void* desired, c89atomic_memory_order successOrder, c89atomic_memory_order failureOrder)
{
{
return c89atomic_compare_exchange_weak_explicit_32((volatile c89atomic_uint32*)dst, (c89atomic_uint32*)expected, (c89atomic_uint32)desired, successOrder, failureOrder);
return c89atomic_compare_exchange_weak_explicit_32((volatile c89atomic_uint32*)dst, (c89atomic_uint32*)expected, (c89atomic_uint32)desired, successOrder, failureOrder);
}
}
...
@@ -14101,8 +14101,8 @@ typedef unsigned char c89atomic_bool;
...
@@ -14101,8 +14101,8 @@ typedef unsigned char c89atomic_bool;
#define c89atomic_store_ptr(dst, src) c89atomic_store_explicit_ptr((volatile void**)dst, (void*)src, c89atomic_memory_order_seq_cst)
#define c89atomic_store_ptr(dst, src) c89atomic_store_explicit_ptr((volatile void**)dst, (void*)src, c89atomic_memory_order_seq_cst)
#define c89atomic_load_ptr(ptr) c89atomic_load_explicit_ptr((volatile void**)ptr, c89atomic_memory_order_seq_cst)
#define c89atomic_load_ptr(ptr) c89atomic_load_explicit_ptr((volatile void**)ptr, c89atomic_memory_order_seq_cst)
#define c89atomic_exchange_ptr(dst, src) c89atomic_exchange_explicit_ptr((volatile void**)dst, (void*)src, c89atomic_memory_order_seq_cst)
#define c89atomic_exchange_ptr(dst, src) c89atomic_exchange_explicit_ptr((volatile void**)dst, (void*)src, c89atomic_memory_order_seq_cst)
#define c89atomic_compare_exchange_strong_ptr(dst, expected, desired) c89atomic_compare_exchange_strong_explicit_ptr((volatile void**)dst, (vo
latile vo
id**)expected, (void*)desired, c89atomic_memory_order_seq_cst, c89atomic_memory_order_seq_cst)
#define c89atomic_compare_exchange_strong_ptr(dst, expected, desired) c89atomic_compare_exchange_strong_explicit_ptr((volatile void**)dst, (void**)expected, (void*)desired, c89atomic_memory_order_seq_cst, c89atomic_memory_order_seq_cst)
#define c89atomic_compare_exchange_weak_ptr(dst, expected, desired) c89atomic_compare_exchange_weak_explicit_ptr((volatile void**)dst, (vo
latile vo
id**)expected, (void*)desired, c89atomic_memory_order_seq_cst, c89atomic_memory_order_seq_cst)
#define c89atomic_compare_exchange_weak_ptr(dst, expected, desired) c89atomic_compare_exchange_weak_explicit_ptr((volatile void**)dst, (void**)expected, (void*)desired, c89atomic_memory_order_seq_cst, c89atomic_memory_order_seq_cst)
#define c89atomic_test_and_set_8( ptr) c89atomic_test_and_set_explicit_8( ptr, c89atomic_memory_order_seq_cst)
#define c89atomic_test_and_set_8( ptr) c89atomic_test_and_set_explicit_8( ptr, c89atomic_memory_order_seq_cst)
#define c89atomic_test_and_set_16(ptr) c89atomic_test_and_set_explicit_16(ptr, c89atomic_memory_order_seq_cst)
#define c89atomic_test_and_set_16(ptr) c89atomic_test_and_set_explicit_16(ptr, c89atomic_memory_order_seq_cst)
#define c89atomic_test_and_set_32(ptr) c89atomic_test_and_set_explicit_32(ptr, c89atomic_memory_order_seq_cst)
#define c89atomic_test_and_set_32(ptr) c89atomic_test_and_set_explicit_32(ptr, c89atomic_memory_order_seq_cst)
...
@@ -53610,7 +53610,7 @@ MA_API ma_result ma_paged_audio_buffer_data_append_page(ma_paged_audio_buffer_da
...
@@ -53610,7 +53610,7 @@ MA_API ma_result ma_paged_audio_buffer_data_append_page(ma_paged_audio_buffer_da
ma_paged_audio_buffer_page* pOldTail = (ma_paged_audio_buffer_page*)c89atomic_load_ptr(&pData->pTail);
ma_paged_audio_buffer_page* pOldTail = (ma_paged_audio_buffer_page*)c89atomic_load_ptr(&pData->pTail);
ma_paged_audio_buffer_page* pNewTail = pPage;
ma_paged_audio_buffer_page* pNewTail = pPage;
if (c89atomic_compare_exchange_weak_ptr((void**)&pData->pTail, (void**)&pOldTail, pNewTail)) {
if (c89atomic_compare_exchange_weak_ptr((vo
latile vo
id**)&pData->pTail, (void**)&pOldTail, pNewTail)) {
/* Here is where we append the page to the list. After this, the page is attached to the list and ready to be read from. */
/* Here is where we append the page to the list. After this, the page is attached to the list and ready to be read from. */
c89atomic_exchange_ptr(&pOldTail->pNext, pPage);
c89atomic_exchange_ptr(&pOldTail->pNext, pPage);
break; /* Done. */
break; /* Done. */
...
@@ -55342,7 +55342,7 @@ extern "C" {
...
@@ -55342,7 +55342,7 @@ extern "C" {
#define DRFLAC_XSTRINGIFY(x) DRFLAC_STRINGIFY(x)
#define DRFLAC_XSTRINGIFY(x) DRFLAC_STRINGIFY(x)
#define DRFLAC_VERSION_MAJOR 0
#define DRFLAC_VERSION_MAJOR 0
#define DRFLAC_VERSION_MINOR 12
#define DRFLAC_VERSION_MINOR 12
#define DRFLAC_VERSION_REVISION 3
1
#define DRFLAC_VERSION_REVISION 3
2
#define DRFLAC_VERSION_STRING DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MAJOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MINOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_REVISION)
#define DRFLAC_VERSION_STRING DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MAJOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_MINOR) "." DRFLAC_XSTRINGIFY(DRFLAC_VERSION_REVISION)
#include <stddef.h>
#include <stddef.h>
typedef signed char drflac_int8;
typedef signed char drflac_int8;
...
@@ -55351,7 +55351,7 @@ typedef signed short drflac_int16;
...
@@ -55351,7 +55351,7 @@ typedef signed short drflac_int16;
typedef unsigned short drflac_uint16;
typedef unsigned short drflac_uint16;
typedef signed int drflac_int32;
typedef signed int drflac_int32;
typedef unsigned int drflac_uint32;
typedef unsigned int drflac_uint32;
#if defined(_MSC_VER)
#if defined(_MSC_VER)
&& !defined(__clang__)
typedef signed __int64 drflac_int64;
typedef signed __int64 drflac_int64;
typedef unsigned __int64 drflac_uint64;
typedef unsigned __int64 drflac_uint64;
#else
#else
...
@@ -55703,7 +55703,7 @@ extern "C" {
...
@@ -55703,7 +55703,7 @@ extern "C" {
#define DRMP3_XSTRINGIFY(x) DRMP3_STRINGIFY(x)
#define DRMP3_XSTRINGIFY(x) DRMP3_STRINGIFY(x)
#define DRMP3_VERSION_MAJOR 0
#define DRMP3_VERSION_MAJOR 0
#define DRMP3_VERSION_MINOR 6
#define DRMP3_VERSION_MINOR 6
#define DRMP3_VERSION_REVISION 3
1
#define DRMP3_VERSION_REVISION 3
2
#define DRMP3_VERSION_STRING DRMP3_XSTRINGIFY(DRMP3_VERSION_MAJOR) "." DRMP3_XSTRINGIFY(DRMP3_VERSION_MINOR) "." DRMP3_XSTRINGIFY(DRMP3_VERSION_REVISION)
#define DRMP3_VERSION_STRING DRMP3_XSTRINGIFY(DRMP3_VERSION_MAJOR) "." DRMP3_XSTRINGIFY(DRMP3_VERSION_MINOR) "." DRMP3_XSTRINGIFY(DRMP3_VERSION_REVISION)
#include <stddef.h>
#include <stddef.h>
typedef signed char drmp3_int8;
typedef signed char drmp3_int8;
...
@@ -55712,7 +55712,7 @@ typedef signed short drmp3_int16;
...
@@ -55712,7 +55712,7 @@ typedef signed short drmp3_int16;
typedef unsigned short drmp3_uint16;
typedef unsigned short drmp3_uint16;
typedef signed int drmp3_int32;
typedef signed int drmp3_int32;
typedef unsigned int drmp3_uint32;
typedef unsigned int drmp3_uint32;
#if defined(_MSC_VER)
#if defined(_MSC_VER)
&& !defined(__clang__)
typedef signed __int64 drmp3_int64;
typedef signed __int64 drmp3_int64;
typedef unsigned __int64 drmp3_uint64;
typedef unsigned __int64 drmp3_uint64;
#else
#else
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