clockUtils  1.1
socketsParameters.h
Go to the documentation of this file.
1 /*
2  * clockUtils
3  * Copyright (2015) Michael Baer, Daniel Bonrath, All rights reserved.
4  *
5  * This file is part of clockUtils; clockUtils is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19 
25 #ifndef __CLOCKUTILS_SOCKETS_SOCKETSPARAMETERS_H__
26 #define __CLOCKUTILS_SOCKETS_SOCKETSPARAMETERS_H__
27 
29 
30 // Dynamic library import/export macro
31 #ifndef CLOCK_SOCKETS_API
32  #if CLOCKUTILS_PLATFORM == CLOCKUTILS_PLATFORM_WIN32
33  #ifdef CLOCKUTILS_BUILD_SHARED
34  #ifdef clock_sockets_EXPORTS
35  #define CLOCK_SOCKETS_API __declspec(dllexport)
36  #else
37  #define CLOCK_SOCKETS_API __declspec(dllimport)
38  #endif
39  #else
40  #define CLOCK_SOCKETS_API
41  #endif
42  #elif CLOCKUTILS_PLATFORM == CLOCKUTILS_PLATFORM_LINUX
43  #define CLOCK_SOCKETS_API
44  #else
45  #define CLOCK_SOCKETS_API
46  #endif
47 #endif
48 
49 #endif /* __CLOCKUTILS_SOCKETS_SOCKETSPARAMETERS_H__ */
50