ABC: A System for Sequential Synthesis and Verification
Loading...
Searching...
No Matches
inttypes.hpp
Go to the documentation of this file.
1
#ifndef _inttypes_h_INCLUDED
2
#define _inttypes_h_INCLUDED
3
4
#include "
global.h
"
5
6
// This is an essence a wrapper around '<cinttypes>' respectively
7
// 'inttypes.h' in order to please the 'MinGW' cross-compiler (we are using
8
// 'i686-w64-mingw32-gcc') to produce correct 'printf' style formatting for
9
// 64-bit numbers as this does not work out-of-the-box (which is also very
10
// annoying). This also produces lots of warnings (through '-Wformat' and
11
// the corresponding 'attribute' declaration for 'printf' style functions).
12
// Again 'MinGW' is not fully standard compliant here and we have to cover
13
// up for that manually.
14
15
// We repeat the code on making this work which is also contained in
16
// 'cadical.hpp' as we do not want to require users of the library to
17
// include another header file (like this one) beside 'cadical.hpp'.
18
19
#ifndef PRINTF_FORMAT
20
#ifdef __MINGW32__
21
#define __USE_MINGW_ANSI_STDIO 1
22
#define PRINTF_FORMAT __MINGW_PRINTF_FORMAT
23
#else
24
#define PRINTF_FORMAT printf
25
#endif
26
#endif
27
28
#include <cinttypes>
29
30
#endif
global.h
src
sat
cadical
inttypes.hpp
Generated by Doxygen 1.13.2 © 2025 EPTansuo. All rights reserved.
鲁ICP备2021046540号