Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
803 B

  1. //========= Copyright � 1996-2009, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Steam API context exposure
  4. //
  5. #ifndef MATCHMAKING_STEAM_API_HOOK_H
  6. #define MATCHMAKING_STEAM_API_HOOK_H
  7. #ifdef _WIN32
  8. #pragma once
  9. #endif
  10. #if !defined( _X360 ) && !defined( NO_STEAM ) && !defined( SWDS )
  11. // Steam uses C-runtime calls in headers, need to remap
  12. #ifdef strncpy
  13. #undef strncpy
  14. #define strncpy Q_strncpy
  15. #endif
  16. #ifdef _snprintf
  17. #undef _snprintf
  18. #define _snprintf Q_snprintf
  19. #endif
  20. #include "steam/steam_api.h"
  21. #ifndef NO_STEAM_GAMECOORDINATOR
  22. #include "gcsdk/gcclientsdk.h"
  23. GCSDK::CGCClient *GGCClient();
  24. #endif
  25. #endif
  26. extern class CSteamAPIContext *steamapicontext;
  27. void SteamApiContext_Init();
  28. void SteamApiContext_Shutdown();
  29. #include "steam_lobbyapi.h"
  30. #endif