2 //===--------------------------- inttypes.h -------------------------------===//
4 // The LLVM Compiler Infrastructure
6 // This file is distributed under the University of Illinois Open Source
7 // License. See LICENSE.TXT for details.
9 //===----------------------------------------------------------------------===//
11 #ifndef _LIBCPP_INTTYPES_H
12 #define _LIBCPP_INTTYPES_H
17 This entire header is C99 / C++0X
19 #include <stdint.h> // <cinttypes> includes <cstdint>
225 intmax_t imaxabs(intmax_t j);
226 imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom);
227 intmax_t strtoimax(const char* restrict nptr, char** restrict endptr, int base);
228 uintmax_t strtoumax(const char* restrict nptr, char** restrict endptr, int base);
229 intmax_t wcstoimax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int base);
230 uintmax_t wcstoumax(const wchar_t* restrict nptr, wchar_t** restrict endptr, int base);
236 #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
237 #pragma GCC system_header
240 /* C99 stdlib (e.g. glibc < 2.18) does not provide format macros needed
241 for C++11 unless __STDC_FORMAT_MACROS is defined
243 #if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS)
244 # define __STDC_FORMAT_MACROS
247 #include_next <inttypes.h>
256 #endif // __cplusplus
258 #endif // _LIBCPP_INTTYPES_H