• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1//  (C) Copyright John Maddock 2001.
2//  Use, modification and distribution are subject to the
3//  Boost Software License, Version 1.0. (See accompanying file
4//  LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5
6//  See http://www.boost.org/libs/config for most recent version.
7
8//  MACRO:         BOOST_HAS_STDINT_H
9//  TITLE:         stdint.h
10//  DESCRIPTION:   There are no 1998 C++ Standard headers <stdint.h>
11//                 or <cstdint>, although the 1999 C Standard does
12//                 include <stdint.h>.
13//                 If <stdint.h> is present, <boost/stdint.h> can make
14//                 good use of it, so a flag is supplied (signalling
15//                 presence; thus the default is not present, conforming
16//                 to the current C++ standard).
17
18# if defined(__hpux) || defined(__FreeBSD__) || defined(__IBMCPP__)
19#   include <inttypes.h>
20# else
21#   include <stdint.h>
22# endif
23
24namespace boost_has_stdint_h{
25
26int test()
27{
28   int8_t i = 0;
29#ifndef __QNX__
30   // QNX has these under non-standard names, our cstdint.hpp will find them however:
31   int_fast8_t j = 0;
32   int_least8_t k = 0;
33   (void)j;
34   (void)k;
35#endif
36   (void)i;
37
38   return 0;
39}
40
41}
42
43
44
45
46
47
48
49