CppCMS
cstdint.h
1 //
2 // Copyright (C) 2009-2012 Artyom Beilis (Tonkikh)
3 //
4 // Distributed under the Boost Software License, Version 1.0. (See
5 // accompanying file LICENSE_1_0.txt or copy at
6 // http://www.boost.org/LICENSE_1_0.txt)
7 //
8 #ifndef BOOSTER_CSTDINT_H
9 #define BOOSTER_CSTDINT_H
10 
11 #include <booster/build_config.h>
12 
13 #if defined(BOOSTER_HAVE_STDINT_H) || defined(BOOSTER_HAVE_INTTYPES_H)
14 
15 # if defined BOOSTER_HAVE_STDINT_H
16 # include <stdint.h>
17 # elif defined BOOSTER_HAVE_INTTYPES_H
18 # include <inttypes.h>
19 # endif
20  namespace booster {
21  using ::int8_t;
22  using ::uint8_t;
23  using ::uint16_t;
24  using ::int16_t;
25  using ::uint32_t;
26  using ::int32_t;
27  using ::uint64_t;
28  using ::int64_t;
29  }
30 
31 
32 #else
33  namespace booster {
34  //
35  // Generally only for broken MSVC
36  // And guess
37  typedef unsigned char uint8_t;
38  typedef signed char int8_t;
39  typedef unsigned short uint16_t;
40  typedef short int16_t;
41  typedef unsigned int uint32_t;
42  typedef int int32_t;
43  typedef unsigned long long uint64_t;
44  typedef long long int64_t;
45  }
46 #endif
47 
48 #endif // BOOSTER_CSTDINT_H
49 
Booster library namespace. The library that implements Boost Like API in ABI backward compatible way...
Definition: application.h:23