Alexandre Julliard : schannel: Use FIELD_OFFSET instead of offsetof.
Module: wine Branch: master Commit: e748d62e77c56ccdaa094e0a103d97a059e59b26 URL: http://source.winehq.org/git/wine.git/?a=commit;h=e748d62e77c56ccdaa094e0a10... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Tue May 29 13:25:50 2007 +0200 schannel: Use FIELD_OFFSET instead of offsetof. --- dlls/schannel/tests/main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/schannel/tests/main.c b/dlls/schannel/tests/main.c index 69f4bd6..af245d8 100644 --- a/dlls/schannel/tests/main.c +++ b/dlls/schannel/tests/main.c @@ -33,9 +33,9 @@ #include "wine/test.h" /* Helper macros to find the size of SECPKG_FUNCTION_TABLE */ -#define SECPKG_FUNCTION_TABLE_SIZE_1 offsetof(SECPKG_FUNCTION_TABLE, \ +#define SECPKG_FUNCTION_TABLE_SIZE_1 FIELD_OFFSET(SECPKG_FUNCTION_TABLE, \ SetContextAttributes) -#define SECPKG_FUNCTION_TABLE_SIZE_2 offsetof(SECPKG_FUNCTION_TABLE, \ +#define SECPKG_FUNCTION_TABLE_SIZE_2 FIELD_OFFSET(SECPKG_FUNCTION_TABLE, \ SetCredentialsAttributes) #define SECPKG_FUNCTION_TABLE_SIZE_3 sizeof(SECPKG_FUNCTION_TABLE)
participants (1)
-
Alexandre Julliard