Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Load xbt/misc.h to get the definition of XBT_PUBLIC
[simgrid.git] / src / include / xbt / xbt_portability.h
index be15892..1902124 100644 (file)
 #ifndef _XBT_PORTABILITY_H
 #define _XBT_PORTABILITY_H
 
+#include <xbt/misc.h> /* XBT_PUBLIC */
+
 /** @brief get time in seconds 
 
   * gives  the  number  of  seconds since the Epoch (00:00:00 UTC, January 1, 1970).
   * Most users should use gras_os_time and should not use this function unless 
     they really know what they are doing. */
-double xbt_os_time(void);
+XBT_PUBLIC double xbt_os_time(void);
 
 typedef struct s_xbt_os_timer *xbt_os_timer_t;
-xbt_os_timer_t xbt_os_timer_new(void);
-void xbt_os_timer_free(xbt_os_timer_t timer);
-void xbt_os_timer_start(xbt_os_timer_t timer);
-void xbt_os_timer_stop(xbt_os_timer_t timer);
-double xbt_os_timer_elapsed(xbt_os_timer_t timer);
+XBT_PUBLIC xbt_os_timer_t xbt_os_timer_new(void);
+XBT_PUBLIC void xbt_os_timer_free(xbt_os_timer_t timer);
+XBT_PUBLIC void xbt_os_timer_start(xbt_os_timer_t timer);
+XBT_PUBLIC void xbt_os_timer_stop(xbt_os_timer_t timer);
+XBT_PUBLIC double xbt_os_timer_elapsed(xbt_os_timer_t timer);
 
 #endif