Module: wine Branch: master Commit: e658b79965d93a447b3b3e27752123070db9339d URL: http://source.winehq.org/git/wine.git/?a=commit;h=e658b79965d93a447b3b3e2775...
Author: Rob Shearman rob@codeweavers.com Date: Tue Feb 26 11:13:04 2008 +0000
msimtf: Don't use typeof as it's not portable.
---
dlls/msimtf/main.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msimtf/main.c b/dlls/msimtf/main.c index 89034e7..da675aa 100644 --- a/dlls/msimtf/main.c +++ b/dlls/msimtf/main.c @@ -164,7 +164,7 @@ static HRESULT register_server(BOOL doregister) { HRESULT hres; HMODULE hAdvpack; - typeof(RegInstallA) *pRegInstall; + HRESULT (WINAPI *pRegInstall)(HMODULE hm, LPCSTR pszSection, const STRTABLEA* pstTable); STRTABLEA strtable; STRENTRYA pse[1]; static CLSID const *clsids[34]; @@ -186,7 +186,7 @@ static HRESULT register_server(BOOL doregister) strtable.pse = pse;
hAdvpack = LoadLibraryW(wszAdvpack); - pRegInstall = (typeof(RegInstallA)*)GetProcAddress(hAdvpack, "RegInstall"); + pRegInstall = (void *)GetProcAddress(hAdvpack, "RegInstall");
hres = pRegInstall(msimtf_instance, doregister ? "RegisterDll" : "UnregisterDll", &strtable);