floooh / sokol

minimal cross-platform standalone C headers
https://floooh.github.io/sokol-html5
zlib License
7.12k stars 501 forks source link

Fix include to work on FreeBSD #1055

Closed kimshrier closed 6 months ago

kimshrier commented 6 months ago

You do not need to include alloca.h on FreeBSD in order to have the prototype for the alloca function. It is defined in stdlib.h.

floooh commented 6 months ago

Oki doki thanks! Note though that I cannot guarantee BSD compatibility at all times because I only test changes on a vanilla Linux distro (Ubuntu).