mirror of
https://github.com/ValveSoftware/Proton.git
synced 2025-06-12 13:17:50 +02:00
lsteamclient: Use 64bit handles for unix side interface pointers.
Based on a patch from Billy Laws.
This commit is contained in:

committed by
Arkadiusz Hiler

parent
01e7e7eccf
commit
d89c5c80bb
@ -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 */
|
||||
|
Reference in New Issue
Block a user