DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
PluginServiceCommon.h
Go to the documentation of this file.
1 #ifndef GAUDIPLUGINSERVICE_GAUDI_DETAILS_PLUGINSERVICECOMMON_H
2 #define GAUDIPLUGINSERVICE_GAUDI_DETAILS_PLUGINSERVICECOMMON_H
3 
4 #ifndef _GAUDI_PLUGIN_SERVICE_COMMON_H_
5 /*****************************************************************************\
6 * (c) Copyright 2013 CERN *
7 * *
8 * This software is distributed under the terms of the GNU General Public *
9 * Licence version 3 (GPL Version 3), copied verbatim in the file "LICENCE". *
10 * *
11 * In applying this licence, CERN does not waive the privileges and immunities *
12 * granted to it by virtue of its status as an Intergovernmental Organization *
13 * or submit itself to any jurisdiction. *
14 \*****************************************************************************/
15 
17 
18 # ifndef GAUDI_PLUGIN_SERVICE_USE_V2
19 # if defined( GAUDI_PLUGIN_SERVICE_V2 ) || !defined( GAUDI_PLUGIN_SERVICE_V1 )
20 # define GAUDI_PLUGIN_SERVICE_V2_INLINE inline
21 # define GAUDI_PLUGIN_SERVICE_V1_INLINE
22 # define GAUDI_PLUGIN_SERVICE_USE_V2 1
23 # else
24 # define GAUDI_PLUGIN_SERVICE_V2_INLINE
25 # define GAUDI_PLUGIN_SERVICE_V1_INLINE inline
26 # define GAUDI_PLUGIN_SERVICE_USE_V2 0
27 # endif
28 # endif
29 
30 # if __GNUC__ >= 4
31 # define GAUDIPS_HASCLASSVISIBILITY
32 # endif
33 
34 # if defined( GAUDIPS_HASCLASSVISIBILITY )
35 # define GAUDIPS_IMPORT __attribute__( ( visibility( "default" ) ) )
36 # define GAUDIPS_EXPORT __attribute__( ( visibility( "default" ) ) )
37 # define GAUDIPS_LOCAL __attribute__( ( visibility( "hidden" ) ) )
38 # else
39 # define GAUDIPS_IMPORT
40 # define GAUDIPS_EXPORT
41 # define GAUDIPS_LOCAL
42 # endif
43 
44 # ifdef GaudiPluginService_EXPORTS
45 # define GAUDIPS_API GAUDIPS_EXPORT
46 # else
47 # define GAUDIPS_API GAUDIPS_IMPORT
48 # endif
49 
50 #endif
51 
52 #endif