From: Arnaud Giersch Date: Wed, 28 Nov 2012 17:14:30 +0000 (+0100) Subject: An inline function must be visible from header file. X-Git-Tag: v3_9_rc1~86^2~260 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/7d961518f975f0bf546ef326331f5df5f8807417 An inline function must be visible from header file. --- diff --git a/examples/msg/chainsend/common.c b/examples/msg/chainsend/common.c index 58da8dcd3d..37f2b74cb8 100644 --- a/examples/msg/chainsend/common.c +++ b/examples/msg/chainsend/common.c @@ -1,10 +1,5 @@ #include "common.h" -inline void queue_pending_connection(msg_comm_t comm, xbt_dynar_t q) -{ - xbt_dynar_push(q, &comm); -} - int process_pending_connections(xbt_dynar_t q) { unsigned int iter; diff --git a/examples/msg/chainsend/common.h b/examples/msg/chainsend/common.h index f0d9997bd6..012bde7284 100644 --- a/examples/msg/chainsend/common.h +++ b/examples/msg/chainsend/common.h @@ -4,6 +4,11 @@ #include "msg/msg.h" #include "xbt/sysdep.h" +static XBT_INLINE void queue_pending_connection(msg_comm_t comm, xbt_dynar_t q) +{ + xbt_dynar_push(q, &comm); +} + #define MESSAGE_SIZE 1 #define HOSTNAME_LENGTH 20