Skip to content

Fix macOS compilation and fix main() return warning#1

Open
Kreeblah wants to merge 2 commits intovxmdesign:masterfrom
Kreeblah:master
Open

Fix macOS compilation and fix main() return warning#1
Kreeblah wants to merge 2 commits intovxmdesign:masterfrom
Kreeblah:master

Conversation

@Kreeblah
Copy link

@Kreeblah Kreeblah commented Aug 9, 2021

macOS doesn't have malloc.h. It defines the malloc() function in stdlib.h instead, so this fixes that on Macs.

Also, I noticed that main() didn't always explicitly return a value, so this adds a return 0 at the end of it.

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.

1 participant