aboutsummaryrefslogtreecommitdiffstats
path: root/al/direct_defs.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-05-14 21:01:24 -0700
committerChris Robinson <[email protected]>2023-05-14 21:01:24 -0700
commitde1d0e59797a7eb64c697e861cf033d8cba7190d (patch)
treef0a02ca6bd580e2f4cdf41feea1994d6df617887 /al/direct_defs.h
parentb80502e41d4d0fa0978bfa11b73803e5dfa45148 (diff)
Fix linkage definitions
Diffstat (limited to 'al/direct_defs.h')
-rw-r--r--al/direct_defs.h26
1 files changed, 13 insertions, 13 deletions
diff --git a/al/direct_defs.h b/al/direct_defs.h
index 4ab72730..e483fc71 100644
--- a/al/direct_defs.h
+++ b/al/direct_defs.h
@@ -12,7 +12,7 @@ constexpr void DefaultVal() noexcept { }
} // namespace detail_
#define DECL_FUNC(R, Name) \
-R AL_API Name(void) START_API_FUNC \
+R AL_APIENTRY Name(void) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -20,7 +20,7 @@ R AL_API Name(void) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNC1(R, Name, T1) \
-R AL_API Name(T1 a) START_API_FUNC \
+R AL_APIENTRY Name(T1 a) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -28,7 +28,7 @@ R AL_API Name(T1 a) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNC2(R, Name, T1, T2) \
-R AL_API Name(T1 a, T2 b) START_API_FUNC \
+R AL_APIENTRY Name(T1 a, T2 b) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -36,7 +36,7 @@ R AL_API Name(T1 a, T2 b) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNC3(R, Name, T1, T2, T3) \
-R AL_API Name(T1 a, T2 b, T3 c) START_API_FUNC \
+R AL_APIENTRY Name(T1 a, T2 b, T3 c) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -44,7 +44,7 @@ R AL_API Name(T1 a, T2 b, T3 c) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNC4(R, Name, T1, T2, T3, T4) \
-R AL_API Name(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \
+R AL_APIENTRY Name(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -52,7 +52,7 @@ R AL_API Name(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNC5(R, Name, T1, T2, T3, T4, T5) \
-R AL_API Name(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \
+R AL_APIENTRY Name(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -61,7 +61,7 @@ R AL_API Name(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \
#define DECL_FUNCEXT(R, Name,Ext) \
-R AL_API Name##Ext(void) START_API_FUNC \
+R AL_APIENTRY Name##Ext(void) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -69,7 +69,7 @@ R AL_API Name##Ext(void) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNCEXT1(R, Name,Ext, T1) \
-R AL_API Name##Ext(T1 a) START_API_FUNC \
+R AL_APIENTRY Name##Ext(T1 a) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -77,7 +77,7 @@ R AL_API Name##Ext(T1 a) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNCEXT2(R, Name,Ext, T1, T2) \
-R AL_API Name##Ext(T1 a, T2 b) START_API_FUNC \
+R AL_APIENTRY Name##Ext(T1 a, T2 b) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -85,7 +85,7 @@ R AL_API Name##Ext(T1 a, T2 b) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNCEXT3(R, Name,Ext, T1, T2, T3) \
-R AL_API Name##Ext(T1 a, T2 b, T3 c) START_API_FUNC \
+R AL_APIENTRY Name##Ext(T1 a, T2 b, T3 c) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -93,7 +93,7 @@ R AL_API Name##Ext(T1 a, T2 b, T3 c) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNCEXT4(R, Name,Ext, T1, T2, T3, T4) \
-R AL_API Name##Ext(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \
+R AL_APIENTRY Name##Ext(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -101,7 +101,7 @@ R AL_API Name##Ext(T1 a, T2 b, T3 c, T4 d) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNCEXT5(R, Name,Ext, T1, T2, T3, T4, T5) \
-R AL_API Name##Ext(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \
+R AL_APIENTRY Name##Ext(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \
@@ -109,7 +109,7 @@ R AL_API Name##Ext(T1 a, T2 b, T3 c, T4 d, T5 e) START_API_FUNC \
} END_API_FUNC
#define DECL_FUNCEXT6(R, Name,Ext, T1, T2, T3, T4, T5, T6) \
-R AL_API Name##Ext(T1 a, T2 b, T3 c, T4 d, T5 e, T6 f) START_API_FUNC \
+R AL_APIENTRY Name##Ext(T1 a, T2 b, T3 c, T4 d, T5 e, T6 f) START_API_FUNC \
{ \
auto context = GetContextRef(); \
if(!context) UNLIKELY return detail_::DefaultVal<R>(); \