summaryrefslogtreecommitdiff
path: root/src/ivy.c
diff options
context:
space:
mode:
authorfcolin2008-04-11 16:21:04 +0000
committerfcolin2008-04-11 16:21:04 +0000
commitdb656ec297cd2bdfdbfdf1ee4dab0085f3198492 (patch)
treea2b157c7838e2f73590021f7b63462ddf98e196d /src/ivy.c
parent3152da9d5a99a95ce75fee6c378a3b0711e28bb3 (diff)
downloadivy-c-db656ec297cd2bdfdbfdf1ee4dab0085f3198492.zip
ivy-c-db656ec297cd2bdfdbfdf1ee4dab0085f3198492.tar.gz
ivy-c-db656ec297cd2bdfdbfdf1ee4dab0085f3198492.tar.bz2
ivy-c-db656ec297cd2bdfdbfdf1ee4dab0085f3198492.tar.xz
Modification pour compilation sous Windows
Diffstat (limited to 'src/ivy.c')
-rw-r--r--src/ivy.c4
1 files changed, 3 insertions, 1 deletions
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 <stdlib.h>
#ifdef WIN32
#include <windows.h>
+#define snprintf _snprintf
#else
#include <sys/time.h>
#include <arpa/inet.h>
@@ -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);