fix FreeBSD compile issue.

alloca is defined in stdlib.h on [freeBSD](https://www.freebsd.org/cgi/man.cgi?alloca)

additional fix to 75c1314ab0
This commit is contained in:
Hermet Park 2022-05-17 21:54:40 +09:00
parent 47075bb3e6
commit 0e8cd1e525
3 changed files with 13 additions and 0 deletions

View file

@ -19,6 +19,15 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
#ifdef _WIN32
#include <malloc.h>
#elif __FreeBSD__
#include<stdlib.h>
#else
#include <alloca.h>
#endif
#include "tvgMath.h"
#include "tvgRender.h"
#include "tvgSwCommon.h"

View file

@ -23,6 +23,8 @@
#ifdef _WIN32
#include <malloc.h>
#elif __FreeBSD__
#include<stdlib.h>
#else
#include <alloca.h>
#endif

View file

@ -28,6 +28,8 @@
#ifdef _WIN32
#include <malloc.h>
#elif __FreeBSD__
#include<stdlib.h>
#else
#include <alloca.h>
#endif