Skip to content

fix #20516 ImportC undefined identifier _Float16#20699

Merged
thewilsonator merged 1 commit intodlang:masterfrom
WalterBright:_Float16
Jan 14, 2025
Merged

fix #20516 ImportC undefined identifier _Float16#20699
thewilsonator merged 1 commit intodlang:masterfrom
WalterBright:_Float16

Conversation

@WalterBright
Copy link
Copy Markdown
Member

The _Float16 type is now in C23, and ImportC doesn't recognize it. But it will with this patch, even though DMD does not implement actual 16 bit floats.

This is necessary for the moment as <math.h> won't compile even if _Float16 is not used.

Issue #20516

@WalterBright WalterBright requested a review from ibuclaw as a code owner January 14, 2025 06:00
@dlang-bot
Copy link
Copy Markdown
Contributor

Thanks for your pull request, @WalterBright!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

⚠️⚠️⚠️ Warnings ⚠️⚠️⚠️

  • In preparation for migrating from Bugzilla to GitHub Issues, the issue reference syntax has changed. Please add the word "Bugzilla" to issue references. For example, Fix Bugzilla Issue 12345 or Fix Bugzilla 12345.(Reminder: the edit needs to be done in the Git commit message, not the GitHub pull request.)

Testing this PR locally

If you don't have a local development environment setup, you can use Digger to test this PR:

dub run digger -- build "master + dmd#20699"

@WalterBright WalterBright linked an issue Jan 14, 2025 that may be closed by this pull request
@WalterBright
Copy link
Copy Markdown
Member Author

@thewilsonator thewilsonator added the Feature:ImportC Pertaining to ImportC support label Jan 14, 2025
@thewilsonator thewilsonator merged commit d6f693b into dlang:master Jan 14, 2025
@WalterBright WalterBright deleted the _Float16 branch January 14, 2025 07:49
@renatoathaydes
Copy link
Copy Markdown

Wow quick action on this one, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature:ImportC Pertaining to ImportC support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ImportC: undefined identifier _Float16

4 participants