--- JSON-XS/XS.xs 2007/05/09 16:41:12 1.32 +++ JSON-XS/XS.xs 2007/05/23 20:26:40 1.33 @@ -374,8 +374,13 @@ // that randomises hash orderings if (enc->flags & F_CANONICAL) { - HE *he, *hes [count]; // if your compiler dies here, you need to enable C99 mode int fast = 1; + HE *he; +#if WIN32 + HE **hes = _alloca (count * sizeof (HE)); +#else + HE *hes [count]; // if your compiler dies here, you need to enable C99 mode +#endif i = 0; while ((he = hv_iternext (hv)))