Fix Windows bustage by using the alloca-inclusion incantation from jstracer.cpp. (Bug 636039)

This commit is contained in:
L. David Baron 2011-03-17 20:43:06 -07:00
parent 9cd361a5d0
commit 446b33c572

View File

@ -81,7 +81,16 @@
#include "mozilla/dom/Element.h"
#include "CSSCalc.h"
#include "nsPrintfCString.h"
#if defined(_MSC_VER) || defined(__MINGW32__)
#include <malloc.h>
#ifdef _MSC_VER
#define alloca _alloca
#endif
#endif
#ifdef SOLARIS
#include <alloca.h>
#endif
using namespace mozilla::dom;
namespace css = mozilla::css;