Skip to content

GCC 2.95 support#177

Draft
Un1q32 wants to merge 9 commits into
ButterscotchRunner:mainfrom
Un1q32:gcc-2.95
Draft

GCC 2.95 support#177
Un1q32 wants to merge 9 commits into
ButterscotchRunner:mainfrom
Un1q32:gcc-2.95

Conversation

@Un1q32
Copy link
Copy Markdown
Contributor

@Un1q32 Un1q32 commented May 30, 2026

This is ready but depends on #176 so its marked as draft until that gets merged.

Adds support for building with GCC 2.95.

GCC 2.95's C mode, even with -std=gnu9x, doesn't support mixed declarations and code, which makes it impossible to adapt butterscotch to support it without major effort. It would basically be a full C89 conversion, and would be a monumental diff. This is unacceptable.
The solution was to target GCC 2.95's C++ mode. C++ has supported mixed declarations and code for much longer, so I just made the changes required to build with g++ -fpermissive. You must use -fpermissive because otherwise GCC will error whenever you implicitly cast a void * to another pointer type.

Un1q32 added 9 commits May 30, 2026 00:15
SDL 1.2 actually defaults to vsync off anyway, plus older version of SDL
don't have the setting so it was causing issues building on some old
systems.
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