Define __WCHAR_WIDTH in sys/_types.h and derive WCHAR_WIDTH from
that, the same way as WCHAR_MIN and WCHAR_MAX, in both <wchar.h>
and <stdint.h> as per C23 §7.31.1 and §7.22.3.4, respectively.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
If the size is the same on all platforms, it should not be in the platform-specific _types.h files.
Comment Actions
If the size is the same on all platforms, it should not be in the platform-specific _types.h files.
I was considering putting it in sys/sys/_types.h, but wasn't sure since the size could differ on other architectures (applies not to any we support, though). I'll take care of it.
Comment Actions
Well it was previously a platform-independent definition in _stdint.h, so I don't see how it would become platform-dependent in the future. That said, it can always be changed if needed.
Looks good to me.
Approved for commit.