Main Page
Classes
Files
File List
File Members
src
Util
Config.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2012 SCHUNK GmbH & Co. KG
3
* Copyright (c) 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
4
*
5
* Licensed under the Apache License, Version 2.0 (the "License");
6
* you may not use this file except in compliance with the License.
7
* You may obtain a copy of the License at
8
*
9
* http://www.apache.org/licenses/LICENSE-2.0
10
11
* Unless required by applicable law or agreed to in writing, software
12
* distributed under the License is distributed on an "AS IS" BASIS,
13
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
* See the License for the specific language governing permissions and
15
* limitations under the License.
16
*/
17
18
#ifndef UTIL_CONFIG_H
19
#define UTIL_CONFIG_H
20
21
// This config file is intended to contain all necessary configuration
22
// switches to get the software running on all compilers/platforms. It should
23
// be included by EVERY file as the first include file !!!!!!!!!
24
//
25
// ========================================================================= //
26
27
28
29
// -------------------------------------------------------------------------- ;
30
// Linux
31
// -------------------------------------------------------------------------- ;
32
#ifdef __LINUX__
33
#ifndef LINUX
34
#define LINUX
35
#endif
36
#endif
37
38
#ifdef __LINUX__
39
40
#define __386__
41
// already defined as inline in <cmath>
42
#define WITHSTREAMS
43
#define HAS_ABS_FCT
44
45
#endif // Linux
46
47
// -------------------------------------------------------------------------- ;
48
// Sun Workshop compiler :
49
// -------------------------------------------------------------------------- ;
50
51
#if defined (__SUNPRO_CC)
52
53
#define WITHSTREAMS
54
#define NO_CLASS_PARTIAL_SPECIALIZATION
55
#define NO_MEMBER_TEMPLATES
56
#define NO_DEFAULT_ARGS_FOR_FUNCTION_TEMPLATES
57
#define NO_ABS_FCT
58
59
#endif // __SUNPRO_CC
60
61
// -------------------------------------------------------------------------- ;
62
// Watcom compiler :
63
// -------------------------------------------------------------------------- ;
64
65
#if defined (__WATCOM_CPLUSPLUS__)
66
67
#define WITHSTREAMS
68
#define __386__
69
#define NO_CLASS_PARTIAL_SPECIALIZATION
70
#define NO_MEMBER_TEMPLATES
71
#define NO_DEFAULT_ARGS_FOR_FUNCTION_TEMPLATES
72
#define NO_CAST_FUNCTION_TEMPLATES
73
//#define NO_ISTREAM_OPERATOR_BOOL
74
#define NO_STL_STRINGS
75
#define NO_ABS_FCT
76
#define std
77
78
#endif // __WATCOM_CPLUSPLUS__
79
80
// -------------------------------------------------------------------------- ;
81
82
// -------------------------------------------------------------------------- ;
83
// Microsoft compiler :
84
// -------------------------------------------------------------------------- ;
85
#if defined(_MSC_VER)
86
87
#define WITHSTREAMS // comment if using MFC !!!
88
#define __386__
89
#if (_MSC_VER <= 1200)
90
#define NO_CLASS_PARTIAL_SPECIALIZATION
91
#define NO_MEMBER_TEMPLATES
92
#endif
93
94
#if (_MSC_VER < 1200)
95
#define NO_ISTREAM_OPERATOR_BOOL
96
#endif
97
98
#endif // _MSC_VER
99
100
// -------------------------------------------------------------------------- ;
101
102
#endif // UTIL_CONFIG_H
schunk_libm5api
Author(s): Florian Weisshardt
autogenerated on Mon Nov 25 2019 03:48:19