aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-02-11 11:14:34 -0800
committerChris Robinson <[email protected]>2019-02-11 11:14:34 -0800
commit21aaa18c500c554fc6af39d9256b83cff8d07516 (patch)
treeeb0b8a3dd0f5b79f80aef37c8d58a3687ddf2747 /OpenAL32/Include/alMain.h
parent995c9649cbaa16742ef7c9c20aa58e422ba90a35 (diff)
Get rid of the FAM_SIZE macro
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index 1c1d9d90..e93d3db4 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -54,12 +54,6 @@ constexpr inline size_t countof(const T(&)[N]) noexcept
#endif
#endif
-/* Calculates the size of a struct with N elements of a flexible array member.
- * GCC and Clang allow offsetof(Type, fam[N]) for this, but MSVC seems to have
- * trouble, so a bit more verbose workaround is needed.
- */
-#define FAM_SIZE(T, M, N) (offsetof(T, M) + sizeof(((T*)NULL)->M[0])*(N))
-
using ALint64 = ALint64SOFT;
using ALuint64 = ALuint64SOFT;