2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-12-22 10:58:58 +00:00

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>
This commit is contained in:
Christopher Fore 2024-08-05 09:41:50 -04:00
parent 2856b288e4
commit 6918f0b7eb

View File

@ -1,5 +1,6 @@
#include <qpdf/assert_test.h> #include <qpdf/assert_test.h>
#include <cstdint>
#include <cstdlib> #include <cstdlib>
#include <cstring> #include <cstring>
#include <functional> #include <functional>