floooh / sokol

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

Fix include to work on FreeBSD #1055

Closed kimshrier closed 1 month ago

kimshrier commented 1 month 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 1 month 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).