Skip to content

Conversation

@sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Dec 15, 2023

This is followup to #20752 which was supposed to define __LONG_MAX rather than LONG_MAX.

You can see the effect of this change on some struct layouts in musl that contain checks like #if __LONG_MAX > 0x7fffffff. Since __LONG_MAX (and internal-only macro) is now correctly defined we get some slightly different values/layouts in libc.

Copy link
Collaborator

@walkingeyerobot walkingeyerobot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

This is followup to emscripten-core#20752 which was supposed to define __LONG_MAX
rather than LONG_MAX.

You can see the effect of this change on some struct layouts in musl
that contain checks like `#if __LONG_MAX > 0x7fffffff`.  Since
`__LONG_MAX` (and internal-only macro) is now correctly defined we
get some slightly different values/layouts in libc.
@sbc100 sbc100 enabled auto-merge (squash) December 15, 2023 21:43
@sbc100 sbc100 merged commit 5b8018d into emscripten-core:main Dec 15, 2023
@sbc100 sbc100 deleted the fix_long_max branch December 15, 2023 21:58
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