mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-04-23 22:50:06 +00:00
[PR #1648] [MERGED] Fix compile-time issue involving implicit declaration of mapclut_paletee() #2356
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/CCExtractor/ccextractor/pull/1648
Author: @rhymeswithmogul
Created: 11/26/2024
Status: ✅ Merged
Merged: 11/27/2024
Merged by: @cfsmp3
Base:
master← Head:fix-1646-missing-include📝 Commits (2)
6346446Fix implicit declaration error on some systems.c2973abUpdate CHANGES.TXT.📊 Changes
2 files changed (+2 additions, -0 deletions)
View changed files
📝
docs/CHANGES.TXT(+1 -0)📝
src/lib_ccx/ocr.c(+1 -0)📄 Description
This commit fixes a compile-time error regarding an implicit declaration of mapclut_paletee() on some compilers and compiler versions. Notably, Arch Linux and Ubuntu 24.10 seem to be affected.
The error resolved is:
This was resolved by
#include-ing "ccx_encoders_spupng.h" in the file src/lib_ccx/ocr.c. Thanks to GitHub user @steel-bucket for sharing the fix in this issue's comments.I was having the same issue, and making this change to that file allowed it to compile on my system (Ubuntu 24.10, GCC 14.2.0-4ubuntu2).
Fixes: #1646
In raising this pull request, I confirm the following (please check boxes):
My familiarity with the project is as follows (check one):
{pull request content here}
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.