Skip to content

Include <stdlib.h> for malloc and free.#10

Merged
btzy merged 1 commit into
btzy:masterfrom
API-Beast:master
Jul 2, 2020
Merged

Include <stdlib.h> for malloc and free.#10
btzy merged 1 commit into
btzy:masterfrom
API-Beast:master

Conversation

@API-Beast
Copy link
Copy Markdown
Contributor

@API-Beast API-Beast commented Jul 1, 2020

Didn't compile on Ubuntu 16.04 due to missing include for <stdlib.h>, resulting in error messages that malloc and free are not defined.

I'm unsure why this isn't a problem on Ubuntu 18.04.

@btzy
Copy link
Copy Markdown
Owner

btzy commented Jul 2, 2020

Thanks for the PR!

It could because Ubuntu 16.04 uses gcc 5, while Ubuntu 18.04 uses gcc 7, and some header was updated to include <stdlib.h>.

@btzy btzy merged commit 1ca0902 into btzy:master Jul 2, 2020
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