Equalizer  1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
fabric/api.h
1 /* Copyright (c) 2010, Daniel Pfeifer <daniel@pfeifer-mail.de>
2  * 2010-2014, Stefan Eilemann <eile@eyescale.ch>
3  *
4  * This library is free software; you can redistribute it and/or modify it under
5  * the terms of the GNU Lesser General Public License version 2.1 as published
6  * by the Free Software Foundation.
7  *
8  * This library is distributed in the hope that it will be useful, but WITHOUT
9  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10  * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11  * details.
12  *
13  * You should have received a copy of the GNU Lesser General Public License
14  * along with this library; if not, write to the Free Software Foundation, Inc.,
15  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16  */
17 
18 #ifndef EQFABRIC_API_H
19 #define EQFABRIC_API_H
20 
21 #include <lunchbox/api.h>
22 
23 #if defined(EQUALIZERFABRIC_STATIC)
24 # define EQFABRIC_API
25 # define EQFABRIC_INL
26 #elif defined(EQUALIZERFABRIC_SHARED)
27 # define EQFABRIC_API LUNCHBOX_DLLEXPORT
28 #else
29 # define EQFABRIC_API LUNCHBOX_DLLIMPORT
30 #endif
31 
32 #if defined(EQUALIZER_SHARED) || defined(EQUALIZERSERVER_SHARED) || \
33  defined(EQUALIZERFABRIC_SHARED) || defined(EQUALIZERADMIN_SHARED)
34 # define EQFABRIC_INL LB_DLLEXPORT
35 #elif !defined(EQFABRIC_INL)
36 # define EQFABRIC_INL LB_DLLIMPORT
37 #endif
38 
39 #endif //EQFABRIC_API_H