From c81b88b7af71898176fabb4177118edfc3a70c22 Mon Sep 17 00:00:00 2001 From: mquinson Date: Tue, 10 Jul 2007 17:25:53 +0000 Subject: [PATCH] ops, wasn't compilable under windows git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3710 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/xbt/xbt_os_thread.c | 2 +- src/xbt/xbt_rl_synchro.c | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/xbt/xbt_os_thread.c b/src/xbt/xbt_os_thread.c index a4b7fa8f6e..73fe3a4fdc 100644 --- a/src/xbt/xbt_os_thread.c +++ b/src/xbt/xbt_os_thread.c @@ -309,7 +309,7 @@ void xbt_os_mutex_destroy(xbt_os_mutex_t mutex) { } /***** condition related functions *****/ - enum { + enum { /* KEEP IT IN SYNC WITH xbt_thread.c */ SIGNAL = 0, BROADCAST = 1, MAX_EVENTS = 2 diff --git a/src/xbt/xbt_rl_synchro.c b/src/xbt/xbt_rl_synchro.c index 1a6b52f48b..1f42eeaf25 100644 --- a/src/xbt/xbt_rl_synchro.c +++ b/src/xbt/xbt_rl_synchro.c @@ -83,6 +83,14 @@ void xbt_mutex_destroy(xbt_mutex_t mutex) { xbt_os_mutex_destroy( (xbt_os_mutex_t)mutex ); } +#ifdef WIN32 + enum { /* KEEP IT IN SYNC WITH OS IMPLEM */ + SIGNAL = 0, + BROADCAST = 1, + MAX_EVENTS = 2 + }; +#endif + /***** condition related functions *****/ typedef struct xbt_cond_ { /* KEEP IT IN SYNC WITH OS IMPLEMENTATION (both win and lin) */ -- 2.20.1