1 //===================== Copyright (c) Valve Corporation. All Rights Reserved. ======================
2 #pragma once
3 
4 #if defined(STEAMWEBRTC_USE_STATIC_LIBS)
5 #  define STEAMWEBRTC_DECLSPEC
6 #else
7 #  if defined(_WIN32)
8 #    define STEAMWEBRTC_DECLSPEC __declspec(dllexport)
9 #  else
10 #    if defined(__GNUC__) && __GNUC__ >= 4
11 #      define STEAMWEBRTC_DECLSPEC __attribute__ ((visibility("default")))
12 #    else
13 #      define STEAMWEBRTC_DECLSPEC
14 #    endif
15 #  endif
16 #endif
17 
18 #ifdef WIN32
19 #  define WEBRTC_WIN 1
20 #elif __linux__
21 #  define WEBRTC_LINUX 1
22 #  define WEBRTC_POSIX 1
23 #elif __APPLE__
24 #  include "TargetConditionals.h"
25 #  if TARGET_OS_IPHONE && TARGET_IPHONE_SIMULATOR
26 #    define WEBRTC_MAC 1
27 #  elif TARGET_OS_IPHONE
28 #    define WEBRTC_MAC 1
29 #  else
30 #    define WEBRTC_MAC 1
31 #  endif
32 #endif
33