Enforce RTC_API in tests and examples in case stdcall is used

This commit is contained in:
Paul-Louis Ageneau
2020-10-24 22:43:18 +02:00
parent 789ecd7977
commit 456365bc7c
5 changed files with 341 additions and 352 deletions

View File

@ -25,15 +25,15 @@ extern "C" {
#ifdef _WIN32
#define RTC_EXPORT __declspec(dllexport)
#else
#define RTC_EXPORT
#endif
#ifdef CAPI_STDCALL
#define RTC_API __stdcall
#else
#define RTC_API
#endif
#else // not WIN32
#define RTC_EXPORT
#define RTC_API
#endif
#ifndef RTC_ENABLE_WEBSOCKET
#define RTC_ENABLE_WEBSOCKET 1