alloca() lives in stdlib.h on FreeBSD

This commit is contained in:
Rob Messick 2014-02-23 12:15:14 -08:00
parent 51609ffc04
commit 0109fb4295
1 changed files with 6 additions and 0 deletions

View File

@ -26,7 +26,13 @@
/* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */ /* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE */
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/*************************************************************************/ /*************************************************************************/
#ifdef __linux__
#include <alloca.h> #include <alloca.h>
#endif
#ifdef __FreeBSD__
#include <stdlib.h>
#endif
#define GLES2_INCLUDE_H "gl_context/glew.h" #define GLES2_INCLUDE_H "gl_context/glew.h"
#define GLES1_INCLUDE_H "gl_context/glew.h" #define GLES1_INCLUDE_H "gl_context/glew.h"