From 21aaa18c500c554fc6af39d9256b83cff8d07516 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 11 Feb 2019 11:14:34 -0800 Subject: Get rid of the FAM_SIZE macro --- OpenAL32/Include/alMain.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'OpenAL32/Include/alMain.h') 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; -- cgit v1.2.3