From fa2181d2d5d72f9f023fa7384b1c43bb00d24019 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 25 Apr 2013 15:10:01 +0200 Subject: Allow to be included on non-Windows --- ftnoir_protocol_ft/fttypes.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/ftnoir_protocol_ft/fttypes.h b/ftnoir_protocol_ft/fttypes.h index 215d939d..0c65fc2f 100644 --- a/ftnoir_protocol_ft/fttypes.h +++ b/ftnoir_protocol_ft/fttypes.h @@ -29,20 +29,24 @@ Modifications (last one on top): 20130125 - WVR: Upgraded to FT2.0: now the FreeTrack protocol supports all TIR-enabled games. The memory-mapping was expanded for this purpose. */ -#pragma once #ifndef INCLUDED_FTTYPES_H #define INCLUDED_FTTYPES_H - -#include -#include -#include + +#if !defined(_WIN32) +# include +typedef int32_t my_32bit_int; +# define WINAPI +#else +# include +typedef __int32 my_32bit_int; +#endif //#include "Registry.h" // static const char* FT_CLIENT_LOCATION = "Software\\Freetrack\\FreetrackClient"; -#define FT_CLIENT_FILENAME "FreeTrackClient.Dll" +//#define FT_CLIENT_FILENAME "FreeTrackClient.Dll" #define FT_MM_DATA "FT_SharedMem" -#define FREETRACK "Freetrack" +//#define FREETRACK "Freetrack" #define FREETRACK_MUTEX "FT_Mutext" struct TFreeTrackData { @@ -77,9 +81,9 @@ typedef TFreeTrackData * PFreetrackData; struct FTMemMap { TFreeTrackData data; - __int32 GameID; + my_32bit_int GameID; unsigned char table[8]; - __int32 GameID2; + my_32bit_int GameID2; }; typedef FTMemMap * PFTMemMap; -- cgit v1.2.3