Add missing cstdint includes

Some files have been using various fixed-size types (uint32_t etc.),
which are defined in stdint.h / cstdint, without including said header
file. While this code worked with GCC12 (likely a transitive include),
under GCC13 it fails to build due to "unknown type" errors.
This commit is contained in:
suve 2023-01-20 15:00:10 +01:00 committed by jacob1
parent 62129e3d34
commit 8ce7a37070
4 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,7 @@
#include <cstring>
#include <zlib.h>
#include <cstdio>
#include <cstdint>
#include "graphics/Graphics.h"

View File

@ -25,6 +25,7 @@
# include <dirent.h>
#endif
#ifdef MACOSX
# include <cstdint>
# include <mach-o/dyld.h>
#endif

View File

@ -4,6 +4,7 @@
#include "font.bz2.h"
#include <array>
#include <cstdint>
unsigned char *font_data = nullptr;
unsigned int *font_ptrs = nullptr;

View File

@ -1,4 +1,5 @@
#include <stdexcept>
#include <cstdint>
#include <fstream>
#include <iterator>
#include <iomanip>