asherkin / SteamTools

SteamWorks for SourceMod

Home Page:https://forums.alliedmods.net/forumdisplay.php?f=147

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Help compiling for MacOS (if possible)

techydude0713 opened this issue · comments

I would like to try to compile a MacOS version of SteamTools, but I run into this:

.../SteamTools/extension/extension.cpp:668:28: error: no matching function for call to 'CreateDetour'
    g_pGetCallbackDetour = DETOUR_CREATE_STATIC( DetourGetCallback, GetCallback);
                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.../SteamTools/extension/CDetour/detours.h:135:46: note: expanded from macro 'DETOUR_CREATE_STATIC'
#define DETOUR_CREATE_STATIC(name, gamedata) CDetourManager::CreateDetour(GET_STATIC_CALLBACK(name), GET_STATIC_TRAMPOLINE(name), gamedata);
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
.../SteamTools/extension/CDetour/detours.h:247:18: note: candidate function not viable: no known conversion from 'GetCallbackFn' (aka 'bool (*)(int, CallbackMsg_t *)') to 'void *' for 3rd argument; take the address of the argument with &
        static CDetour *CreateDetour(void *callbackfunction, void **trampoline, void *pAddress);
                        ^
.../SteamTools/extension/CDetour/detours.h:246:18: note: candidate function not viable: no known conversion from 'GetCallbackFn' (aka 'bool (*)(int, CallbackMsg_t *)') to 'const char *' for 3rd argument
        static CDetour *CreateDetour(void *callbackfunction, void **trampoline, const char *signame);
                        ^

Is there anything I'm doing wrong or can it not be compiled for mac?

EDITS: Changed the issue