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
18e4756b
Commit
18e4756b
authored
Aug 02, 2023
by
David Reid
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decouple MA_API and MA_STATIC defines.
parent
8df02809
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
16 deletions
+26
-16
miniaudio.h
miniaudio.h
+26
-16
No files found.
miniaudio.h
View file @
18e4756b
...
@@ -3930,8 +3930,8 @@ typedef ma_uint16 wchar_t;
...
@@ -3930,8 +3930,8 @@ typedef ma_uint16 wchar_t;
#define MA_NO_INLINE
#define MA_NO_INLINE
#endif
#endif
#if !defined(MA_API)
/* MA_DLL is not officially supported. You're on your own if you want to use this. */
#if defined(MA_DLL)
#if defined(MA_DLL)
#if defined(_WIN32)
#if defined(_WIN32)
#define MA_DLL_IMPORT __declspec(dllimport)
#define MA_DLL_IMPORT __declspec(dllimport)
#define MA_DLL_EXPORT __declspec(dllexport)
#define MA_DLL_EXPORT __declspec(dllexport)
...
@@ -3947,19 +3947,29 @@ typedef ma_uint16 wchar_t;
...
@@ -3947,19 +3947,29 @@ typedef ma_uint16 wchar_t;
#define MA_DLL_PRIVATE static
#define MA_DLL_PRIVATE static
#endif
#endif
#endif
#endif
#endif
#if !defined(MA_API)
#if defined(MA_DLL)
#if defined(MINIAUDIO_IMPLEMENTATION) || defined(MA_IMPLEMENTATION)
#if defined(MINIAUDIO_IMPLEMENTATION) || defined(MA_IMPLEMENTATION)
#define MA_API MA_DLL_EXPORT
#define MA_API MA_DLL_EXPORT
#else
#else
#define MA_API MA_DLL_IMPORT
#define MA_API MA_DLL_IMPORT
#endif
#endif
#define MA_PRIVATE MA_DLL_PRIVATE
#else
#else
#define MA_API extern
#define MA_API extern
#endif
#endif
#if !defined(MA_STATIC)
#if defined(MA_DLL)
#define MA_PRIVATE MA_DLL_PRIVATE
#else
#define MA_PRIVATE static
#define MA_PRIVATE static
#endif
#endif
#endif
#endif
/* SIMD alignment in bytes. Currently set to 32 bytes in preparation for future AVX optimizations. */
/* SIMD alignment in bytes. Currently set to 32 bytes in preparation for future AVX optimizations. */
#define MA_SIMD_ALIGNMENT 32
#define MA_SIMD_ALIGNMENT 32
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