1
0
forked from 0ad/0ad

Fixes weldmesh build on *BSD

This was SVN commit r12478.
This commit is contained in:
historic_bruno 2012-08-19 19:57:23 +00:00
parent a3f9da72a5
commit a17ffaa0f2

View File

@ -1,3 +1,8 @@
// Slightly modified version of weldmesh, by Wildfire Games, for 0 A.D.
//
// Motivation for changes:
// * Fix build on *BSD (including malloc.h produces an error)
#include "precompiled.h"
/**
@ -25,8 +30,8 @@
#include <string.h>
#include <assert.h>
#ifdef __APPLE__
#include <stdlib.h> /* OSX gets its malloc stuff through here */
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__)
#include <stdlib.h> /* BSD-based OSes get their malloc stuff through here */
#else
#include <malloc.h>
#endif