gamesdk-and-dispatch
gamesdk-and-dispatch copied to clipboard
Cannot build GameSDK under macOS and Linux
Describe the bug
The GameSDK fails to build under macOS and Linux due to improperly written type definitions in ffi.h and discord_game_sdk.h
Steps to reproduce Steps to reproduce the behavior:
- Download the GameSDK on an Unix machine
- Try using it in a project
Expected behavior It builds
Implementation specifics
- Language: C++
- Game Engine: N/A
Additional context
The issue is in lines 218-229 of discord_game_sdk.h and ffi.h. Those lines should be changed to the following (note the semicolons):
#ifndef _WIN32
typedef void MSG;
typedef void IDXGISwapChain;
#endif
Sidenote, but there's superfluous indentation on line 230.
So we changed some underlying stuff in our latest version 3.1.0. Can I give you this and you can tell me if this issue still occurs?
https://dl-game-sdk.discordapp.net/3.1.0/discord_game_sdk.zip
Looks resolved to me, albeit I don't have a Linux or macOS platform to test with at the moment.