discord_register.h 566 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #if defined(DISCORD_DYNAMIC_LIB)
  3. #if defined(_WIN32)
  4. #if defined(DISCORD_BUILDING_SDK)
  5. #define DISCORD_EXPORT __declspec(dllexport)
  6. #else
  7. #define DISCORD_EXPORT __declspec(dllimport)
  8. #endif
  9. #else
  10. #define DISCORD_EXPORT __attribute__((visibility("default")))
  11. #endif
  12. #else
  13. #define DISCORD_EXPORT
  14. #endif
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. DISCORD_EXPORT void Discord_Register(const char* applicationId, const char* command);
  19. DISCORD_EXPORT void Discord_RegisterSteamGame(const char* applicationId, const char* steamId);
  20. #ifdef __cplusplus
  21. }
  22. #endif