Commit 6918f0b7eb0160059d712ee19ba0ce2d65b9f89c

Authored by Christopher Fore
1 parent 2856b288

libtests: include cstdint for GCC 15

GCC 15 starts to no longer include this by default, requiring it to be
explicitly included.

Error message:
libtests/cxx11.cc:75:16: error: ‘uint8_t’ was not declared in this scope
   75 |     check_size<uint8_t>(1, false);
      |                ^~~~~~~
libtests/cxx11.cc:10:1: note: ‘uint8_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
    9 | #include <regex>
  +++ |+#include <cstdint>
   10 | #include <type_traits>

Signed-off-by: Christopher Fore <csfore@posteo.net>
Showing 1 changed file with 1 additions and 0 deletions
libtests/cxx11.cc
1 #include <qpdf/assert_test.h> 1 #include <qpdf/assert_test.h>
2 2
  3 +#include <cstdint>
3 #include <cstdlib> 4 #include <cstdlib>
4 #include <cstring> 5 #include <cstring>
5 #include <functional> 6 #include <functional>