textwolf  0.2
position.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2014 Patrick P. Frey
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
10 #ifndef __TEXTWOLF_POSITION_HPP__
11 #define __TEXTWOLF_POSITION_HPP__
12 
13 #ifdef BOOST_VERSION
14 #include <boost/cstdint.hpp>
15 namespace textwolf {
18  typedef boost::uint64_t PositionIndex;
19 }//namespace
20 #else
21 #ifdef _MSC_VER
22 #pragma warning(disable:4290)
23 #include <BaseTsd.h>
24 namespace textwolf {
27  typedef DWORD64 PositionIndex;
28 }//namespace
29 #else
30 #include <stdint.h>
31 namespace textwolf {
34  typedef uint64_t PositionIndex;
35 }//namespace
36 #endif
37 #endif
38 
39 #endif
40 
uint64_t PositionIndex
Definition: position.hpp:34