Skip to content

Commit 58717f0

Browse files
author
Jiri Slaby
committed
(gcc 13) include cstdint for *int*_t
Otherwise we see errors like this with gcc13: src/solvers/prop/prop.h:115:39: error: 'uint32_t' has not been declared Put the includes as per check-clang-format.
1 parent 42c350e commit 58717f0

File tree

6 files changed

+11
-4
lines changed

6 files changed

+11
-4
lines changed

src/goto-programs/name_mangler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Author: Kareem Khazem <[email protected]>, 2019
1010

1111
#include <util/get_base_name.h>
1212

13+
#include <cstdint>
1314
#include <iomanip>
1415
#include <sstream>
1516

src/goto-programs/osx_fat_reader.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Module: Read OS X Fat Binaries
1414

1515
#include <util/message.h>
1616

17+
#include <cstdint>
1718
#include <fstream>
1819
#include <map>
1920
#include <string>

src/solvers/prop/prop.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Author: Daniel Kroening, [email protected]
1717

1818
#include "literal.h"
1919

20+
#include <cstdint>
21+
2022
/*! \brief TO_BE_DOCUMENTED
2123
*/
2224
class propt

src/solvers/smt2/smt2_conv.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ Author: Daniel Kroening, [email protected]
4242

4343
#include "smt2_tokenizer.h"
4444

45+
#include <cstdint>
46+
4547
// Mark different kinds of error conditions
4648

4749
// Unexpected types and other combinations not implemented and not

src/util/ieee_float.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ Author: Daniel Kroening, [email protected]
88

99
#include "ieee_float.h"
1010

11-
#include <limits>
12-
1311
#include "arith_tools.h"
1412
#include "bitvector_types.h"
1513
#include "floatbv_expr.h"
1614
#include "invariant.h"
1715
#include "std_expr.h"
1816

17+
#include <cstdint>
18+
#include <limits>
19+
1920
mp_integer ieee_float_spect::bias() const
2021
{
2122
return power(2, e-1)-1;

src/util/unicode.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ Author: Daniel Kroening, [email protected]
66
77
\*******************************************************************/
88

9+
#include "invariant.h"
910
#include "unicode.h"
1011

1112
#include <codecvt>
13+
#include <cstdint>
1214
#include <iomanip>
1315
#include <locale>
1416
#include <sstream>
1517

16-
#include "invariant.h"
17-
1818
#ifdef _WIN32
1919
# include <util/pragma_push.def>
2020
# ifdef _MSC_VER

0 commit comments

Comments
 (0)