Base.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Plot2d
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2016, Ceetron AS
8 // This is UNPUBLISHED PROPRIETARY SOURCE CODE of Ceetron AS. The contents of this file may
9 // not be disclosed to third parties, copied or duplicated in any form, in whole or in part,
10 // without the prior written permission of Ceetron AS.
11 //##################################################################################################
12 
13 #pragma once
14 
15 #include "CeeCore/Base.h"
16 
17 
18 // The default configuration is for consuming CDC as a dynamic library (DLL).
19 // To build DLL version of CDC, CEE_XXXX_BUILD_DLL_EXPORT must be defined and CEE_STATIC_LIBS must NOT be defined.
20 // To build or use CDC as static libraries, make sure CEE_STATIC_LIBS is defined.
21 #ifdef CEE_STATIC_LIBS
22  #define CEE_PLT_EXPORT
23 #else
24  #if defined(WIN32)
25  #ifdef CEE_PLT_BUILD_DLL_EXPORT
26  #define CEE_PLT_EXPORT __declspec(dllexport)
27  #else
28  #define CEE_PLT_EXPORT __declspec(dllimport)
29  #endif
30  #elif defined(__GNUC__)
31  #ifdef CEE_PLT_BUILD_DLL_EXPORT
32  #define CEE_PLT_EXPORT __attribute__ ((visibility ("default")))
33  #else
34  #define CEE_PLT_EXPORT
35  #endif
36  #else
37  #define CEE_PLT_EXPORT
38  #endif
39 #endif