Skip to content

Fix C++20 Playdate compilation error - #654

Open
Stals wants to merge 1 commit into
nicbarker:mainfrom
Stals:main
Open

Stals wants to merge 1 commit into
nicbarker:mainfrom
Stals:main

Conversation

@Stals

@Stals Stals commented Sep 2, 2026

Copy link
Copy Markdown

clay supports C++20, but when compiling for Playdate with C++20, it actually fails with an error:

clay/renderers/playdate/clay_renderer_playdate.c:168:28: error: cannot initialize a variable of type 'LCDBitmap *' with an lvalue of type 'void *'
  168 |                 LCDBitmap *texture = config->imageData;

I know it is a tiny fix, but it is the only issue that prevents using clay with C++20 on the Playdate.

"cannot initialize a variable of type 'LCDBitmap *' with an lvalue of type 'void *'"
@Stals Stals changed the title Fix C++ 20 Playdate compilation error Fix C++20 Playdate compilation error Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant