clockUtils  1.1
SystemParameters.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 
20 #ifndef __CLOCKUTILS_SYSTEMPARAMETERS_H__
21 #define __CLOCKUTILS_SYSTEMPARAMETERS_H__
22 
23 #include "clockUtils/Config.h"
24 
25 // Global platform specific defines
26 #define CLOCKUTILS_PLATFORM_WIN32 1
27 #define CLOCKUTILS_PLATFORM_LINUX 2
28 #define BOOST_ALL_DYN_LINK
29 #define WIN32_LEAN_AND_MEAN
30 // #define _WIN32_WINNT 0x0501
31 // Determine the current platform
32 #if defined(WIN32) || defined(__WIN32__) || defined(_WIN32)
33  #define CLOCKUTILS_PLATFORM CLOCKUTILS_PLATFORM_WIN32
34  #define WIN32_LEAN_AND_MEAN
35 #else
36  #define CLOCKUTILS_PLATFORM CLOCKUTILS_PLATFORM_LINUX
37 #endif
38 
39 // Debug/Release modes
40 #define CLOCKUTILS_DEBUG 1
41 #define CLOCKUTILS_RELEASE 2
42 
43 #if defined(NDEBUG)
44  #define CLOCKUTILS_MODE CLOCKUTILS_RELEASE
45 #else
46  #define CLOCKUTILS_MODE CLOCKUTILS_DEBUG
47 #endif
48 
49 #ifdef _MSC_VER
50  #pragma warning(disable : 4251) // dll interface to be used by clients...
51 #endif
52 
53 #endif /* __CLOCKUTILS_SYSTEMPARAMETERS_H__ */