Skip to content

Remove stddef dependency#58

Open
Frayzen wants to merge 2 commits intosyoyo:masterfrom
Frayzen:remove_stddef_dependency
Open

Remove stddef dependency#58
Frayzen wants to merge 2 commits intosyoyo:masterfrom
Frayzen:remove_stddef_dependency

Conversation

@Frayzen
Copy link

@Frayzen Frayzen commented Dec 9, 2023

The repo claims to be dependy-free. Let's change size_t to unsigned long and remove the include.
All the tests are still working after modification.

@syoyo
Copy link
Owner

syoyo commented Dec 10, 2023

unsigned long on Windows 64bit is 32bit, so we'll need to define custom size_t(4 bytes on 32bit platform, 8 bytes on 64bit) like this:

https://stackoverflow.com/questions/68920256/whats-the-difference-with-size-t-and-unsigned-long

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

Comments