From d61f916a66793cd19788b6986167d9059a1153b5 Mon Sep 17 00:00:00 2001 From: Rostislav Krasny <45571812+rostidev@users.noreply.github.com> Date: Fri, 5 Dec 2025 03:35:49 +0200 Subject: [PATCH 1/3] include stdint.h in generated digits.h for definition of uint32_t Build doesn't fail without that but dev envs smarter than Emacs, like VS Code with C/C++ plugin, shows an error in that digits.h otherwise. --- src/png2c.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/png2c.c b/src/png2c.c index 8b039c6..d103dd3 100644 --- a/src/png2c.c +++ b/src/png2c.c @@ -38,6 +38,7 @@ int main(int argc, char *argv[]) printf("#ifndef PNG_%s_H_\n", name); printf("#define PNG_%s_H_\n", name); + printf("#include \n"); printf("size_t %s_width = %d;\n", name, x); printf("size_t %s_height = %d;\n", name, y); printf("uint32_t %s_data[] = {", name); From de84110795de9ee771d671a34000c231b63ec12d Mon Sep 17 00:00:00 2001 From: Rostislav Krasny <45571812+rostidev@users.noreply.github.com> Date: Fri, 5 Dec 2025 03:38:49 +0200 Subject: [PATCH 2/3] include stdio.h in common.c for definition of stderr Build doesn't fail without that but dev envs smarter than Emacs, like VS Code with C/C++ plugin, shows an error in that common.c otherwise. --- src/common.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common.c b/src/common.c index b24b10d..6ee6b46 100644 --- a/src/common.c +++ b/src/common.c @@ -5,6 +5,7 @@ #endif #include +#include #include #define FPS 60 From d649406b599fc24aa8f7fc3633293a5beb9c63c8 Mon Sep 17 00:00:00 2001 From: Rostislav Krasny <45571812+rostidev@users.noreply.github.com> Date: Fri, 5 Dec 2025 03:41:35 +0200 Subject: [PATCH 3/3] fix make clean in case some or all files to delete are missing This resolves errors like this: $ make clean rm -r sowon build docs/sowon.6.gz rm: cannot remove 'sowon': No such file or directory rm: cannot remove 'build': No such file or directory rm: cannot remove 'docs/sowon.6.gz': No such file or directory make: *** [Makefile:40: clean] Error 1 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2a1a81c..77b07cd 100644 --- a/Makefile +++ b/Makefile @@ -37,7 +37,7 @@ man: docs/sowon.6.gz .PHONY: clean clean: - rm -r sowon build docs/sowon.6.gz + rm -rf sowon build docs/sowon.6.gz .PHONY: install install: all