Qpid Proton C++  0.17.0
config.hpp
1 #ifndef PROTON_INTERNAL_CONFIG_HPP
2 #define PROTON_INTERNAL_CONFIG_HPP
3 
4 /*
5  *
6  * Licensed to the Apache Software Foundation (ASF) under one
7  * or more contributor license agreements. See the NOTICE file
8  * distributed with this work for additional information
9  * regarding copyright ownership. The ASF licenses this file
10  * to you under the Apache License, Version 2.0 (the
11  * "License"); you may not use this file except in compliance
12  * with the License. You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing,
17  * software distributed under the License is distributed on an
18  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19  * KIND, either express or implied. See the License for the
20  * specific language governing permissions and limitations
21  * under the License.
22  *
23  */
24 
26 
35 
36 #ifndef PN_CPP_HAS_CPP11
37 #if defined(__cplusplus) && __cplusplus >= 201100
38 #define PN_CPP_HAS_CPP11 1
39 #else
40 #define PN_CPP_HAS_CPP11 0
41 #endif
42 #endif
43 
44 #ifndef PN_CPP_HAS_SHARED_PTR
45 #define PN_CPP_HAS_SHARED_PTR PN_CPP_HAS_CPP11
46 #endif
47 
48 #ifndef PN_CPP_HAS_UNIQUE_PTR
49 #define PN_CPP_HAS_UNIQUE_PTR PN_CPP_HAS_CPP11
50 #endif
51 
52 #ifndef PN_CPP_HAS_LONG_LONG
53 #define PN_CPP_HAS_LONG_LONG PN_CPP_HAS_CPP11
54 #endif
55 
56 #ifndef PN_CPP_HAS_NULLPTR
57 #define PN_CPP_HAS_NULLPTR PN_CPP_HAS_CPP11
58 #endif
59 
60 #ifndef PN_CPP_HAS_RVALUE_REFERENCES
61 #define PN_CPP_HAS_RVALUE_REFERENCES PN_CPP_HAS_CPP11
62 #endif
63 
64 #ifndef PN_CPP_HAS_OVERRIDE
65 #define PN_CPP_HAS_OVERRIDE PN_CPP_HAS_CPP11
66 #endif
67 
68 #if PN_CPP_HAS_OVERRIDE
69 #define PN_CPP_OVERRIDE override
70 #else
71 #define PN_CPP_OVERRIDE
72 #endif
73 
74 #ifndef PN_CPP_HAS_EXPLICIT_CONVERSIONS
75 #define PN_CPP_HAS_EXPLICIT_CONVERSIONS PN_CPP_HAS_CPP11
76 #endif
77 
78 #ifndef PN_CPP_HAS_DEFAULTED_FUNCTIONS
79 #define PN_CPP_HAS_DEFAULTED_FUNCTIONS PN_CPP_HAS_CPP11
80 #endif
81 
82 #ifndef PN_CPP_HAS_DELETED_FUNCTIONS
83 #define PN_CPP_HAS_DELETED_FUNCTIONS PN_CPP_HAS_CPP11
84 #endif
85 
86 #ifndef PN_CPP_HAS_STD_FUNCTION
87 #define PN_CPP_HAS_STD_FUNCTION PN_CPP_HAS_CPP11
88 #endif
89 
90 #ifndef PN_CPP_HAS_STD_BIND
91 #define PN_CPP_HAS_STD_BIND PN_CPP_HAS_CPP11
92 #endif
93 
94 #ifndef PN_CPP_HAS_CHRONO
95 #define PN_CPP_HAS_CHRONO PN_CPP_HAS_CPP11
96 #endif
97 
98 #endif // PROTON_INTERNAL_CONFIG_HPP
99