Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include <string.h> in heapbuf.h #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

sleiner
Copy link

@sleiner sleiner commented Dec 27, 2021

memcpy is used in the implementation of WDL_HeapBuf. According to 1,
memcpy is declared in <string.h> which is not included in WDL's
heapbuf.h, causing compilation issues on some platforms.
This patch adds the missing include directive.

memcpy is used in the implementation of WDL_HeapBuf. According to [1],
memcpy is declared in <string.h> which is not included in WDL's
heapbuf.h, causing compilation issues on some platforms.
This patch adds the missing include directive.

[1]: https://en.cppreference.com/w/c/string/byte/memcpy
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