Skip to content

Hexadecimal floating point notation is available since C99#15276

Open
RaceTheMaSe wants to merge 2 commits intolibsdl-org:mainfrom
RaceTheMaSe:hexfloat
Open

Hexadecimal floating point notation is available since C99#15276
RaceTheMaSe wants to merge 2 commits intolibsdl-org:mainfrom
RaceTheMaSe:hexfloat

Conversation

@RaceTheMaSe
Copy link
Copy Markdown
Contributor

Provide alternative for compilers not supporting C99

@slouken
Copy link
Copy Markdown
Collaborator

slouken commented Mar 27, 2026

SDL requires a C99 compiler at this point. What compiler environment builds the rest of SDL but fails to build this file?

@slouken slouken added this to the 3.4.4 milestone Mar 27, 2026
@RaceTheMaSe
Copy link
Copy Markdown
Contributor Author

Still compiles on MSVC 2013 except this line

@icculus
Copy link
Copy Markdown
Collaborator

icculus commented Mar 27, 2026

I would rather this have the one hardcoded line for the normal case, and the #if not c99 section be all the union mess, instead of both of them calculating val.

@slouken slouken requested a review from icculus March 27, 2026 19:21
@icculus icculus self-assigned this Mar 27, 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.

3 participants