diff options
author | fcolin | 2008-04-11 16:21:04 +0000 |
---|---|---|
committer | fcolin | 2008-04-11 16:21:04 +0000 |
commit | db656ec297cd2bdfdbfdf1ee4dab0085f3198492 (patch) | |
tree | a2b157c7838e2f73590021f7b63462ddf98e196d /src/ivy.c | |
parent | 3152da9d5a99a95ce75fee6c378a3b0711e28bb3 (diff) | |
download | ivy-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); |