MongoDB C++ Driver  legacy-1.1.2
cstdint.h
1 /*
2  * Copyright 2012 10gen Inc.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #pragma once
18 
23 #if defined(_MSC_VER)
24 #include <cstdint>
25 #define _MONGO_STDINT_NAMESPACE std
26 #elif defined(__GNUC__)
27 #include <stdint.h>
28 #define _MONGO_STDINT_NAMESPACE
29 #else
30 #error "Unsupported compiler family"
31 #endif
32 
33 namespace mongo {
34 using _MONGO_STDINT_NAMESPACE::int8_t;
35 using _MONGO_STDINT_NAMESPACE::int16_t;
36 using _MONGO_STDINT_NAMESPACE::int32_t;
37 using _MONGO_STDINT_NAMESPACE::int64_t;
38 using _MONGO_STDINT_NAMESPACE::intptr_t;
39 
40 using _MONGO_STDINT_NAMESPACE::uint8_t;
41 using _MONGO_STDINT_NAMESPACE::uint16_t;
42 using _MONGO_STDINT_NAMESPACE::uint32_t;
43 using _MONGO_STDINT_NAMESPACE::uint64_t;
44 using _MONGO_STDINT_NAMESPACE::uintptr_t;
45 } // namespace mongo
46 
47 #undef _MONGO_STDINT_NAMESPACE
Utility functions for parsing numbers from strings.
Definition: compare_numbers.h:20