Alex Henrie : advapi32/tests: Avoid using GCC's typeof extension.
Module: wine Branch: master Commit: d2ad82c87e104f01f7c1d74a60ebae1a0ec1cd67 URL: https://gitlab.winehq.org/wine/wine/-/commit/d2ad82c87e104f01f7c1d74a60ebae1... Author: Alex Henrie <alexhenrie24(a)gmail.com> Date: Mon Nov 21 19:42:45 2022 -0700 advapi32/tests: Avoid using GCC's typeof extension. --- dlls/advapi32/tests/perf.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/dlls/advapi32/tests/perf.c b/dlls/advapi32/tests/perf.c index 34b6e952842..7481020dd4e 100644 --- a/dlls/advapi32/tests/perf.c +++ b/dlls/advapi32/tests/perf.c @@ -31,12 +31,10 @@ #include "initguid.h" -#define DEFINE_FUNCTION(name) static typeof(name) *p##name; -DEFINE_FUNCTION(PerfCloseQueryHandle); -DEFINE_FUNCTION(PerfOpenQueryHandle); -DEFINE_FUNCTION(PerfAddCounters); -DEFINE_FUNCTION(PerfQueryCounterData); -#undef DEFINE_FUNCTION +ULONG (WINAPI *pPerfCloseQueryHandle)(HANDLE); +ULONG (WINAPI *pPerfOpenQueryHandle)(const WCHAR*, HANDLE*); +ULONG (WINAPI *pPerfAddCounters)(HANDLE, PERF_COUNTER_IDENTIFIER*, DWORD); +ULONG (WINAPI *pPerfQueryCounterData)(HANDLE, PERF_DATA_HEADER*, DWORD, DWORD*); static void init_functions(void) {
participants (1)
-
Alexandre Julliard