icculus / mojoshader

Use Direct3D shaders with other 3D rendering APIs.
https://icculus.org/mojoshader/
zlib License
122 stars 36 forks source link

Build fix for alloca on *BSD #58

Closed brad0 closed 1 year ago

brad0 commented 1 year ago

Build fix for alloca on *BSD.

For alloca() the alloca.h header should be used for ancient glibc, modern versions of glibc include alloca.h from stdlib.h anyway, and Solaris. malloc.h is not portable and is more of a Linux-ism and has been long deprecated.

brad0 commented 1 year ago

Seems okay to me but alloca headers are infamously inconsistent... will wait for @icculus to +1 just in case.

No problem. Thanks.

icculus commented 1 year ago

It looks okay, if it broke somewhere else we'll keep adjusting until everything is happy.