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
d0149a03
Commit
d0149a03
authored
Aug 02, 2020
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify sized types.
parent
b48d0dfb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
44 deletions
+22
-44
miniaudio.h
miniaudio.h
+22
-44
No files found.
miniaudio.h
View file @
d0149a03
...
@@ -1473,56 +1473,34 @@ extern "C" {
...
@@ -1473,56 +1473,34 @@ extern "C" {
#include <stddef.h> /* For size_t. */
#include <stddef.h> /* For size_t. */
/* Sized types. Prefer built-in types. Fall back to stdint. */
/* Sized types. */
#ifdef _MSC_VER
typedef signed char ma_int8;
#if defined(__clang__)
typedef unsigned char ma_uint8;
typedef signed short ma_int16;
typedef unsigned short ma_uint16;
typedef signed int ma_int32;
typedef unsigned int ma_uint32;
#if defined(_MSC_VER)
typedef signed __int64 ma_int64;
typedef unsigned __int64 ma_uint64;
#else
#if defined(__GNUC__)
#pragma GCC diagnostic push
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wlanguage-extension-token"
#pragma GCC diagnostic ignored "-Wlong-long"
#pragma GCC diagnostic ignored "-Wlong-long"
#pragma GCC diagnostic ignored "-Wc++11-long-long"
#if defined(__clang__)
#pragma GCC diagnostic ignored "-Wc++11-long-long"
#endif
#endif
#endif
typedef signed __int8 ma_int8;
typedef signed long long ma_int64;
typedef unsigned __int8 ma_uint8;
typedef unsigned long long ma_uint64;
typedef signed __int16 ma_int16;
#if defined(__GNUC__)
typedef unsigned __int16 ma_uint16;
typedef signed __int32 ma_int32;
typedef unsigned __int32 ma_uint32;
typedef signed __int64 ma_int64;
typedef unsigned __int64 ma_uint64;
#if defined(__clang__)
#pragma GCC diagnostic pop
#pragma GCC diagnostic pop
#endif
#endif
#endif
#if defined(__LP64__) || defined(_WIN64) || (defined(__x86_64__) && !defined(__ILP32__)) || defined(_M_X64) || defined(__ia64) || defined (_M_IA64) || defined(__aarch64__) || defined(__powerpc64__)
typedef ma_uint64 ma_uintptr;
#else
#else
#define MA_HAS_STDINT
typedef ma_uint32 ma_uintptr;
#include <stdint.h>
typedef int8_t ma_int8;
typedef uint8_t ma_uint8;
typedef int16_t ma_int16;
typedef uint16_t ma_uint16;
typedef int32_t ma_int32;
typedef uint32_t ma_uint32;
typedef int64_t ma_int64;
typedef uint64_t ma_uint64;
#endif
#ifdef MA_HAS_STDINT
typedef uintptr_t ma_uintptr;
#else
#if defined(_WIN32)
#if defined(_WIN64)
typedef ma_uint64 ma_uintptr;
#else
typedef ma_uint32 ma_uintptr;
#endif
#elif defined(__GNUC__)
#if defined(__LP64__)
typedef ma_uint64 ma_uintptr;
#else
typedef ma_uint32 ma_uintptr;
#endif
#else
typedef ma_uint64 ma_uintptr; /* Fallback. */
#endif
#endif
#endif
typedef ma_uint8 ma_bool8;
typedef ma_uint8 ma_bool8;
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