From 1717358968a198a53e27a092e111ffc916526491 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Sun, 12 Jan 2003 12:10:24 +0000 Subject: [PATCH] Fixed alloca problem with gcc --- goldlib/gall/gwildmat.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/goldlib/gall/gwildmat.cpp b/goldlib/gall/gwildmat.cpp index 0bb1971..022d6f0 100644 --- a/goldlib/gall/gwildmat.cpp +++ b/goldlib/gall/gwildmat.cpp @@ -167,7 +167,11 @@ bool strwild(const char* str, const char* wild) { if(wild[1] == NUL) return true; else { +#ifdef _MSC_VER char *buf = (char *)alloca(strlen(wild)); +#else + __extension__ char buf[strlen(wild)]; +#endif strcpy(buf, wild+1); char* ptr = strpbrk(buf, "*?"); if(ptr)