summaryrefslogtreecommitdiff
path: root/cpp/include/IceSSL/Config.h
blob: 61794c499ae926bee24cc7f39ecc18c3f5b84bd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
// **********************************************************************
//
// Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

#ifndef ICE_SSL_CONFIG_H
#define ICE_SSL_CONFIG_H

#include <Ice/Config.h>

//
// Automatically link IceSSL[D|++11|++11D].lib with Visual C++
//
#if !defined(ICE_BUILDING_ICE_SSL) && defined(ICE_SSL_API_EXPORTS)
#   define ICE_BUILDING_ICE_SSL
#endif

#if defined(_MSC_VER) && !defined(ICE_BUILDING_ICE_SSL)
#   pragma comment(lib, ICE_LIBNAME("IceSSL"))
#endif

#if defined(__APPLE__)
#  define ICE_USE_SECURE_TRANSPORT 1
#if defined(__APPLE__) && TARGET_OS_IPHONE != 0
#  define ICE_USE_SECURE_TRANSPORT_IOS 1
#else
#  define ICE_USE_SECURE_TRANSPORT_MACOS 1
#endif
#elif defined(_WIN32)
#  if !defined(ICE_OS_WINRT)
#    define ICE_USE_SCHANNEL 1
#  endif
#else
#  define ICE_USE_OPENSSL 1
#endif

#endif