Skip to content

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

Open
sleiner wants to merge 1 commit into
justinfrankel:mainfrom
sleiner-forks:include-what-you-use
Open

Include <string.h> in heapbuf.h#15
sleiner wants to merge 1 commit into
justinfrankel:mainfrom
sleiner-forks:include-what-you-use

Conversation

@sleiner

@sleiner sleiner commented Dec 27, 2021

Copy link
Copy Markdown

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