From 43c48f23e6e2df0c6b496e5d772dab985625b89e Mon Sep 17 00:00:00 2001 From: Molgrum Date: Sun, 23 Sep 2007 15:52:35 +0000 Subject: [PATCH] Include the alloca-function. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2687 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/com_mesh.c | 9 +++++---- engine/gl/gl_alias.c | 6 ++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/engine/common/com_mesh.c b/engine/common/com_mesh.c index 044ff47d2..9b6412181 100644 --- a/engine/common/com_mesh.c +++ b/engine/common/com_mesh.c @@ -8,12 +8,13 @@ #include "glquake.h" #endif - - - #include "com_mesh.h" - +#ifdef _WIN32 +#include +#else +#include +#endif extern cvar_t gl_part_flame, r_fullbrightSkins, r_fb_models; extern cvar_t r_noaliasshadows; diff --git a/engine/gl/gl_alias.c b/engine/gl/gl_alias.c index b851007d3..19ef35a91 100644 --- a/engine/gl/gl_alias.c +++ b/engine/gl/gl_alias.c @@ -27,6 +27,12 @@ #include #endif +#ifdef _WIN32 +#include +#else +#include +#endif + #define MAX_BONES 256 #ifndef SERVERONLY