shithub: rgbds

Download patch

ref: 71cb2854e8268a253c0a6e3181bea45ee32c771f
parent: 2099a25ee06bad044e366278878126f8184ef9e3
author: ISSOtm <[email protected]>
date: Wed Mar 9 19:56:55 EST 2022

Use `cinttypes` instead of `inttypes.h`

Fixes build on some compilers for some reason I fail to understand

--- a/src/gfx/convert.cpp
+++ b/src/gfx/convert.cpp
@@ -10,9 +10,9 @@
 
 #include <algorithm>
 #include <assert.h>
+#include <cinttypes>
 #include <errno.h>
 #include <fstream>
-#include <inttypes.h>
 #include <memory>
 #include <optional>
 #include <png.h>
--- a/src/gfx/main.cpp
+++ b/src/gfx/main.cpp
@@ -10,8 +10,8 @@
 
 #include <algorithm>
 #include <assert.h>
+#include <cinttypes>
 #include <ctype.h>
-#include <inttypes.h>
 #include <limits>
 #include <numeric>
 #include <stdarg.h>
--- a/src/gfx/pal_packing.cpp
+++ b/src/gfx/pal_packing.cpp
@@ -10,7 +10,7 @@
 
 #include <assert.h>
 #include <bitset>
-#include <inttypes.h>
+#include <cinttypes>
 #include <numeric>
 #include <optional>
 #include <queue>