forked from chen3feng/thirdparty
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbtree_config.h
36 lines (31 loc) · 1010 Bytes
/
btree_config.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Copyright (c) 2013, Tencent Inc.
// All rights reserved.
//
// Author: CHEN Feng <[email protected]>
// Created: 2013-04-08
#ifndef CPP_BTREE_CONFIG_H
#define CPP_BTREE_CONFIG_H
#pragma once
#if defined(__GXX_EXPERIMENTAL_CXX0X__) || (__cplusplus >= 201103L) || \
(_MSC_VER >= 1600)
#define CPP_BTREE_CXX11 1
#endif
// Config the type_traits
#ifdef CPP_BTREE_CXX11
# define CPP_BTREE_TYPE_TRAITS_HEADER <type_traits>
# define CPP_BTREE_TYPE_TRAITS_NS std
#else // CPP_BTREE_CXX11
// For pre-c++11 compilers, tr1::type_traits is usually available.
# ifdef _MSC_VER
# define CPP_BTREE_TYPE_TRAITS_HEADER <type_traits>
# else
# define CPP_BTREE_TYPE_TRAITS_HEADER <tr1/type_traits>
# endif
# define CPP_BTREE_TYPE_TRAITS_NS std::tr1
#endif // CPP_BTREE_CXX11
// Allow user override the size_type of btree containers.
// Define CPP_BTREE_SIZE_TYPE to be size_t make it total compatible with STL.
#ifndef CPP_BTREE_SIZE_TYPE
#define CPP_BTREE_SIZE_TYPE size_t
#endif
#endif // CPP_BTREE_CONFIG_H