// -*- C++ -*-
#ifndef _EZCXX_CINTTYPES
#define _EZCXX_CINTTYPES

#include <inttypes.h>
#include <cstdint>

#pragma clang system_header

namespace std {

using ::imaxdiv_t;

using ::imaxabs;
using ::imaxdiv;

using ::strtoimax;
using ::strtoumax;

#if __INTMAX_WIDTH__ > __LLONG_WIDTH__
inline constexpr intmax_t abs(intmax_t __x) { return imaxabs(__x); }
inline constexpr imaxdiv_t div(intmax_t __x, intmax_t __y) { return imaxdiv(__x, __y); }
#endif // __INTMAX_WIDTH__ > __LLONG_WIDTH__

} // namespace std

#endif // _EZCXX_CINTTYPES
