dnsapi: Ensure unixlib function tables and enum stay in sync.

This commit is contained in:
Brendan Shanks 2023-10-23 15:16:12 -05:00 committed by Alexandre Julliard
parent e0237f7798
commit 4dc31f923b
2 changed files with 5 additions and 0 deletions

View file

@ -127,6 +127,7 @@ enum unix_funcs
unix_get_serverlist,
unix_set_serverlist,
unix_query,
unix_funcs_count
};
#define RESOLV_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )

View file

@ -344,6 +344,8 @@ const unixlib_entry_t __wine_unix_call_funcs[] =
resolv_query,
};
C_ASSERT( ARRAYSIZE(__wine_unix_call_funcs) == unix_funcs_count );
#ifdef _WIN64
typedef ULONG PTR32;
@ -415,6 +417,8 @@ const unixlib_entry_t __wine_unix_call_wow64_funcs[] =
wow64_resolv_query,
};
C_ASSERT( ARRAYSIZE(__wine_unix_call_wow64_funcs) == unix_funcs_count );
#endif /* _WIN64 */
#endif /* HAVE_RESOLV */