lsteamclient: Use 64bit handles for unix side interface pointers.

Based on a patch from Billy Laws.
This commit is contained in:
Rémi Bernon
2025-01-16 10:40:36 +01:00
committed by Arkadiusz Hiler
parent 01e7e7eccf
commit d89c5c80bb
45 changed files with 7301 additions and 7601 deletions

View File

@ -10,8 +10,6 @@
#ifdef __cplusplus
#include <array>
extern "C"
{
#endif /* __cplusplus */
#ifdef __cplusplus
@ -60,8 +58,13 @@ typedef struct SteamDatagramGameCoordinatorServerLogin SteamDatagramGameCoordina
#define PATH_MAX 4096
extern char *g_tmppath;
struct u_iface
{
UINT64 handle;
#ifdef __cplusplus
} /* extern "C" */
struct u_iface &operator=( const void* value ) { this->handle = (UINT_PTR)value; return *this; }
template< typename T > operator T*() const { return (T*)(UINT_PTR)this->handle; }
#endif /* __cplusplus */
};
#endif /* __STEAMCLIENT_STRUCTS_H */