Skip to content

change defined() to 0/1 check#5599

Merged
raysan5 merged 1 commit into
raysan5:masterfrom
CrackedPixel:fix-getfps
Feb 26, 2026
Merged

change defined() to 0/1 check#5599
raysan5 merged 1 commit into
raysan5:masterfrom
CrackedPixel:fix-getfps

Conversation

@CrackedPixel
Copy link
Copy Markdown
Contributor

@CrackedPixel CrackedPixel commented Feb 26, 2026

There were a few places using the older if defined(), it seems this behavior was changed to use 0/1 values and broke some things

this can be double checked with grep:

grep -ir "defined(SUPPORT_"

there are still a few places but i think they all are appropriate

grep -ir "defined(SUPPORT_"
examples/core/raygui.h:#if defined(SUPPORT_SCROLLBAR_KEY_INPUT)
examples/models/raygui.h:#if defined(SUPPORT_SCROLLBAR_KEY_INPUT)
examples/shaders/raygui.h:#if defined(SUPPORT_SCROLLBAR_KEY_INPUT)
examples/shapes/shapes_rectangle_advanced.c:#if defined(SUPPORT_QUADS_DRAW_MODE)
examples/shapes/raygui.h:#if defined(SUPPORT_SCROLLBAR_KEY_INPUT)
src/platforms/rcore_drm.c:#if defined(SUPPORT_DRM_CACHE)
src/platforms/rcore_drm.c:#if defined(SUPPORT_DRM_CACHE)
src/platforms/rcore_drm.c:#if defined(SUPPORT_DRM_CACHE)
src/platforms/rcore_drm.c:#if defined(SUPPORT_DRM_CACHE)
src/rtext.c:#if defined(SUPPORT_COMPRESSED_FONT_ATLAS)
src/rtext.c:#if defined(SUPPORT_COMPRESSED_FONT_ATLAS)
src/rtext.c:#if defined(SUPPORT_COMPRESSED_FONT_ATLAS)
src/rtext.c:#if defined(SUPPORT_FONT_DATA_COPY)
src/rtext.c:#if defined(SUPPORT_UNORDERED_CHARSET)
tools/rexm/rexm.c:#if defined(SUPPORT_LOG_INFO) //&& defined(_DEBUG)

@raysan5 raysan5 merged commit d8861cc into raysan5:master Feb 26, 2026
16 checks passed
@raysan5
Copy link
Copy Markdown
Owner

raysan5 commented Feb 26, 2026

@CrackedPixel thanks! I also sent a PR to fixing it... but I missed some of those flags...

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.

2 participants