From db656ec297cd2bdfdbfdf1ee4dab0085f3198492 Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 11 Apr 2008 16:21:04 +0000 Subject: Modification pour compilation sous Windows --- src/ivy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ivy.c') diff --git a/src/ivy.c b/src/ivy.c index fd894fd..821f128 100644 --- a/src/ivy.c +++ b/src/ivy.c @@ -27,6 +27,7 @@ #include #ifdef WIN32 #include +#define snprintf _snprintf #else #include #include @@ -1066,6 +1067,8 @@ IvyChangeMsg (MsgRcvPtr msg, const char *fmt_regex, ... ) int IvySendMsg(const char *fmt, ...) /* version dictionnaire */ { int match_count = 0; + MsgSndDictPtr msgSendDict; + static IvyBuffer buffer = { NULL, 0, 0}; /* Use static mem to eliminate multiple call to malloc /free */ va_list ap; @@ -1143,7 +1146,6 @@ int IvySendMsg(const char *fmt, ...) /* version dictionnaire */ #else // PAS OPENMP - MsgSndDictPtr msgSendDict; for (msgSendDict=messSndByRegexp; msgSendDict ; msgSendDict=msgSendDict->hh.next) { match_count += RegexpCall (msgSendDict, buffer.data); -- cgit v1.1