Base.h
1 //##################################################################################################
2 //
3 // Ceetron Desktop Components
4 // Component: Report
5 //
6 // --------------------------------------------------------------------------------------------
7 // Copyright (C) 2013, 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 // The default configuration is for consuming CDC as a dynamic library (DLL).
18 // To build DLL version of CDC, CEE_XXXX_BUILD_DLL_EXPORT must be defined and CEE_STATIC_LIBS must NOT be defined.
19 // To build or use CDC as static libraries, make sure CEE_STATIC_LIBS is defined.
20 #ifdef CEE_STATIC_LIBS
21  #define CEE_REP_EXPORT
22 #else
23  #if defined(WIN32)
24  #ifdef CEE_REP_BUILD_DLL_EXPORT
25  #define CEE_REP_EXPORT __declspec(dllexport)
26  #else
27  #define CEE_REP_EXPORT __declspec(dllimport)
28  #endif
29  #elif defined(__GNUC__)
30  #ifdef CEE_REP_BUILD_DLL_EXPORT
31  #define CEE_REP_EXPORT __attribute__ ((visibility ("default")))
32  #else
33  #define CEE_REP_EXPORT
34  #endif
35  #else
36  #define CEE_REP_EXPORT
37  #endif
38 #endif