This repository has been archived by the owner on Dec 17, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi.
This PR only includes the alloca.h header if compiled for Linux systems.
It appears that the alloca.h header is only available on Linux systems.
ALl BSD's and MacOS expose alloca through stdlib.h
Windows exposes alloca through malloc.h
The Windows part is from @fireflystorm via #104
I've tested this patch under OpenBSD and it works fine.
This should close the issues #80, #87, #104,
Cheers,
Fabian
References:
stdlib.h
http://man.openbsd.org/OpenBSD-6.3/alloca
http://man.openbsd.org/FreeBSD-11.1/alloca
http://man.openbsd.org/NetBSD-7.1/alloca
http://man.openbsd.org/DragonFly-4.8.0/alloca
https://www.unix.com/man-page/osx/3/alloca/
https://www.unix.com/man-page/opensolaris/3C/alloca/
alloca.h
http://man.openbsd.org/Linux-4.13/alloca