Skip to content

Conversation

hxcliff
Copy link
Contributor

@hxcliff hxcliff commented Nov 20, 2024

Enhanced msvc cross-compile compatibility

Enhanced msvc cross-compile compatibility
@saghul
Copy link
Contributor

saghul commented Nov 20, 2024

Can you clarify how this helps?

@hxcliff
Copy link
Contributor Author

hxcliff commented Nov 20, 2024

Can you clarify how this helps?

This msvc version of the function does not depend on tz, tz was introduced (and not used) in the linux version of the function, where if it was for binary compatibility I think it could be retained but the function name has changed and there is no binary compatibility issue. Then in a cross-compiled environment it even brings some compiler alerts

@hxcliff
Copy link
Contributor Author

hxcliff commented Nov 20, 2024

And in linux the tz parameter is only used in the kernel, so I think it's possible to remove the unnecessary parameter

Copy link
Contributor

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

Seems fine to me.

@saghul saghul merged commit 769e78f into quickjs-ng:master Nov 20, 2024
51 checks passed
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