• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2017 The Android Open Source Project
2 // SPDX-License-Identifier: BSD-2-Clause
3 
4 #include <inttypes.h>
5 
6 #include "header_checks.h"
7 
inttypes_h()8 static void inttypes_h() {
9   TYPE(imaxdiv_t);
10 #if defined(__GLIBC__)
11   // Despite POSIX, glibc goes out of its way to avoid defining wchar_t. Fix that.
12   typedef __WCHAR_TYPE__ wchar_t;
13 #endif
14   TYPE(wchar_t);
15 
16   // TODO: PRI macros
17   // TODO: SCN macros
18 
19   FUNCTION(imaxabs, intmax_t (*f)(intmax_t));
20   FUNCTION(imaxdiv, imaxdiv_t (*f)(intmax_t, intmax_t));
21   FUNCTION(strtoimax, intmax_t (*f)(const char*, char**, int));
22   FUNCTION(strtoumax, uintmax_t (*f)(const char*, char**, int));
23   FUNCTION(wcstoimax, intmax_t (*f)(const wchar_t*, wchar_t**, int));
24   FUNCTION(wcstoumax, uintmax_t (*f)(const wchar_t*, wchar_t**, int));
25 }
26