[PATCH] dvisvgm: add missing <cstdint> include in various files

Sergei Trofimovich slyich at gmail.com
Sun Dec 18 21:33:15 CET 2022


Without the change build fails on upcoming `gcc-13` as:

    In file included from XMLString.cpp:23:
    Unicode.hpp:27:39: error: 'uint32_t' has not been declared
       27 |         static bool isValidCodepoint (uint32_t code);
          |                                       ^~~~~~~~
---
 texk/dvisvgm/dvisvgm-src/src/BasicDVIReader.hpp | 1 +
 texk/dvisvgm/dvisvgm-src/src/Bitmap.hpp         | 1 +
 texk/dvisvgm/dvisvgm-src/src/CMap.hpp           | 1 +
 texk/dvisvgm/dvisvgm-src/src/Character.hpp      | 1 +
 texk/dvisvgm/dvisvgm-src/src/Color.hpp          | 1 +
 texk/dvisvgm/dvisvgm-src/src/FileSystem.hpp     | 1 +
 texk/dvisvgm/dvisvgm-src/src/GFReader.hpp       | 1 +
 texk/dvisvgm/dvisvgm-src/src/InputBuffer.hpp    | 1 +
 texk/dvisvgm/dvisvgm-src/src/RangeMap.hpp       | 1 +
 texk/dvisvgm/dvisvgm-src/src/StreamReader.hpp   | 1 +
 texk/dvisvgm/dvisvgm-src/src/Unicode.cpp        | 1 +
 texk/dvisvgm/dvisvgm-src/src/Unicode.hpp        | 1 +
 12 files changed, 12 insertions(+)

diff --git a/texk/dvisvgm/dvisvgm-src/src/BasicDVIReader.hpp b/texk/dvisvgm/dvisvgm-src/src/BasicDVIReader.hpp
index 111283f61..63360c646 100644
--- a/texk/dvisvgm/dvisvgm-src/src/BasicDVIReader.hpp
+++ b/texk/dvisvgm/dvisvgm-src/src/BasicDVIReader.hpp
@@ -21,6 +21,7 @@
 #ifndef BASICDVIREADER_HPP
 #define BASICDVIREADER_HPP
 
+#include <cstdint>
 #include "Matrix.hpp"
 #include "MessageException.hpp"
 #include "StreamReader.hpp"
diff --git a/texk/dvisvgm/dvisvgm-src/src/Bitmap.hpp b/texk/dvisvgm/dvisvgm-src/src/Bitmap.hpp
index dcd6a1f19..5196fa4a4 100644
--- a/texk/dvisvgm/dvisvgm-src/src/Bitmap.hpp
+++ b/texk/dvisvgm/dvisvgm-src/src/Bitmap.hpp
@@ -21,6 +21,7 @@
 #ifndef BITMAP_HPP
 #define BITMAP_HPP
 
+#include <cstdint>
 #include <ostream>
 #include <vector>
 
diff --git a/texk/dvisvgm/dvisvgm-src/src/CMap.hpp b/texk/dvisvgm/dvisvgm-src/src/CMap.hpp
index 7a6b24e83..1c0d68d34 100644
--- a/texk/dvisvgm/dvisvgm-src/src/CMap.hpp
+++ b/texk/dvisvgm/dvisvgm-src/src/CMap.hpp
@@ -22,6 +22,7 @@
 #define CMAP_HPP
 
 #include <algorithm>
+#include <cstdint>
 #include <ostream>
 #include <vector>
 #include "FontEncoding.hpp"
diff --git a/texk/dvisvgm/dvisvgm-src/src/Character.hpp b/texk/dvisvgm/dvisvgm-src/src/Character.hpp
index 6a0e836cc..ef79f1ff0 100644
--- a/texk/dvisvgm/dvisvgm-src/src/Character.hpp
+++ b/texk/dvisvgm/dvisvgm-src/src/Character.hpp
@@ -21,6 +21,7 @@
 #ifndef CHARACTER_HPP
 #define CHARACTER_HPP
 
+#include <cstdint>
 
 class Character {
 	public:
diff --git a/texk/dvisvgm/dvisvgm-src/src/Color.hpp b/texk/dvisvgm/dvisvgm-src/src/Color.hpp
index 19ab9e6d4..e54b4b714 100644
--- a/texk/dvisvgm/dvisvgm-src/src/Color.hpp
+++ b/texk/dvisvgm/dvisvgm-src/src/Color.hpp
@@ -21,6 +21,7 @@
 #ifndef COLOR_HPP
 #define COLOR_HPP
 
+#include <cstdint>
 #include <string>
 #include <valarray>
 #include <vector>
diff --git a/texk/dvisvgm/dvisvgm-src/src/FileSystem.hpp b/texk/dvisvgm/dvisvgm-src/src/FileSystem.hpp
index 86f6dbf20..b72d1fe08 100644
--- a/texk/dvisvgm/dvisvgm-src/src/FileSystem.hpp
+++ b/texk/dvisvgm/dvisvgm-src/src/FileSystem.hpp
@@ -21,6 +21,7 @@
 #ifndef FILESYSTEM_HPP
 #define FILESYSTEM_HPP
 
+#include <cstdint>
 #include <string>
 #include <vector>
 
diff --git a/texk/dvisvgm/dvisvgm-src/src/GFReader.hpp b/texk/dvisvgm/dvisvgm-src/src/GFReader.hpp
index efbb13047..c8b432861 100644
--- a/texk/dvisvgm/dvisvgm-src/src/GFReader.hpp
+++ b/texk/dvisvgm/dvisvgm-src/src/GFReader.hpp
@@ -21,6 +21,7 @@
 #ifndef GFREADER_HPP
 #define GFREADER_HPP
 
+#include <cstdint>
 #include <istream>
 #include <string>
 #include <unordered_map>
diff --git a/texk/dvisvgm/dvisvgm-src/src/InputBuffer.hpp b/texk/dvisvgm/dvisvgm-src/src/InputBuffer.hpp
index adf5898ce..8cf0db258 100644
--- a/texk/dvisvgm/dvisvgm-src/src/InputBuffer.hpp
+++ b/texk/dvisvgm/dvisvgm-src/src/InputBuffer.hpp
@@ -22,6 +22,7 @@
 #define INPUTBUFFER_HPP
 
 #include <algorithm>
+#include <cstdint>
 #include <cstring>
 #include <istream>
 #include <string>
diff --git a/texk/dvisvgm/dvisvgm-src/src/RangeMap.hpp b/texk/dvisvgm/dvisvgm-src/src/RangeMap.hpp
index c14134644..6a35ca464 100644
--- a/texk/dvisvgm/dvisvgm-src/src/RangeMap.hpp
+++ b/texk/dvisvgm/dvisvgm-src/src/RangeMap.hpp
@@ -22,6 +22,7 @@
 #define RANGEMAP_HPP
 
 #include <algorithm>
+#include <cstdint>
 #include <ostream>
 #include <vector>
 
diff --git a/texk/dvisvgm/dvisvgm-src/src/StreamReader.hpp b/texk/dvisvgm/dvisvgm-src/src/StreamReader.hpp
index 1a9d76abe..76164a984 100644
--- a/texk/dvisvgm/dvisvgm-src/src/StreamReader.hpp
+++ b/texk/dvisvgm/dvisvgm-src/src/StreamReader.hpp
@@ -21,6 +21,7 @@
 #ifndef STREAMREADER_HPP
 #define STREAMREADER_HPP
 
+#include <cstdint>
 #include <istream>
 #include <string>
 #include <vector>
diff --git a/texk/dvisvgm/dvisvgm-src/src/Unicode.cpp b/texk/dvisvgm/dvisvgm-src/src/Unicode.cpp
index 2293be039..fd88905d0 100644
--- a/texk/dvisvgm/dvisvgm-src/src/Unicode.cpp
+++ b/texk/dvisvgm/dvisvgm-src/src/Unicode.cpp
@@ -21,6 +21,7 @@
 #include <algorithm>
 #include <cctype>
 #include <cstddef>
+#include <cstdint>
 #include <iomanip>
 #include <sstream>
 #include <xxhash.h>
diff --git a/texk/dvisvgm/dvisvgm-src/src/Unicode.hpp b/texk/dvisvgm/dvisvgm-src/src/Unicode.hpp
index 75d0d0e2d..eee5c378c 100644
--- a/texk/dvisvgm/dvisvgm-src/src/Unicode.hpp
+++ b/texk/dvisvgm/dvisvgm-src/src/Unicode.hpp
@@ -21,6 +21,7 @@
 #ifndef UNICODE_HPP
 #define UNICODE_HPP
 
+#include <cstdint>
 #include <string>
 
 struct Unicode {
-- 
2.38.1



More information about the tex-live mailing list.