DataStorm  0.1
Data Distribution Service
Config.h
Go to the documentation of this file.
1 
2 // **********************************************************************
3 //
4 // Copyright (c) 2018-present ZeroC, Inc. All rights reserved.
5 //
6 // **********************************************************************
7 
8 #pragma once
9 
10 #define DATASTORM_VERSION 0,1,0,0
11 #define DATASTORM_STRING_VERSION "0.1.0"
12 #define DATASTORM_SO_VERSION "0"
13 
14 #if defined(_DEBUG)
15 # define DATASTORM_LIBNAME(NAME) NAME DATASTORM_SO_VERSION "d"
16 # else
17 # define DATASTORM_LIBNAME(NAME) NAME DATASTORM_SO_VERSION ""
18 #endif
19 
20 #if defined(_WIN32)
21 # define DATASTORM_DECLSPEC_EXPORT __declspec(dllexport)
22 # define DATASTORM_DECLSPEC_IMPORT __declspec(dllimport)
23 #elif defined(__GNUC__)
24 # define DATASTORM_DECLSPEC_EXPORT __attribute__((visibility ("default")))
25 # define DATASTORM_DECLSPEC_IMPORT __attribute__((visibility ("default")))
26 #else
27 # define DATASTORM_DECLSPEC_EXPORT
28 # define DATASTORM_DECLSPEC_IMPORT
29 #endif
30 
31 #ifndef DATASTORM_API
32 # ifdef DATASTORM_API_EXPORTS
33 # define DATASTORM_API DATASTORM_DECLSPEC_EXPORT
34 # elif defined(DATASTORM_STATIC_LIBS)
35 # define DATASTORM_API
36 # else
37 # define DATASTORM_API DATASTORM_DECLSPEC_IMPORT
38 # endif
39 #endif
40 
41 #if !defined(DATASTORM_BUILDING_DATASTORM) && defined(DATASTORM_API_EXPORTS)
42 # define DATASTORM_BUILDING_DATASTORM
43 #endif
44 
45 //
46 // Automatically link with DataStorm0[d].lib
47 //
48 #if defined(_MSC_VER) && !defined(DATASTORM_BUILDING_DATASTORM)
49 # pragma comment(lib, DATASTORM_LIBNAME("DataStorm"))
50 #endif
51 
52 //
53 // Always enable the Ice C++11 mapping when using DataStorm.
54 //
55 #if !defined(ICE_CPP11_MAPPING)
56 # define ICE_CPP11_MAPPING 1
57 #endif