summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ev.c2
-rw-r--r--ev.h2
-rw-r--r--ev_vars.h1
3 files changed, 3 insertions, 2 deletions
diff --git a/ev.c b/ev.c
index 77e8011..25776bf 100644
--- a/ev.c
+++ b/ev.c
@@ -223,6 +223,7 @@ typedef struct
struct ev_loop
{
+ ev_tstamp ev_rt_now;
#define VAR(name,decl) decl;
#include "ev_vars.h"
#undef VAR
@@ -234,6 +235,7 @@ typedef struct
#else
+ ev_tstamp ev_rt_now;
#define VAR(name,decl) static decl;
#include "ev_vars.h"
#undef VAR
diff --git a/ev.h b/ev.h
index 589e8ea..cde9da0 100644
--- a/ev.h
+++ b/ev.h
@@ -272,7 +272,7 @@ int ev_default_loop (int methods); /* returns true when successful */
static ev_tstamp
ev_now ()
{
- extern ev_rt_now;
+ extern ev_tstamp ev_rt_now;
return ev_rt_now;
}
diff --git a/ev_vars.h b/ev_vars.h
index e4ece3c..7e70143 100644
--- a/ev_vars.h
+++ b/ev_vars.h
@@ -2,7 +2,6 @@
VARx(ev_tstamp, now_floor) /* last time we refreshed rt_time */
VARx(ev_tstamp, mn_now) /* monotonic clock "now" */
-VARx(ev_tstamp, ev_rt_now)
VARx(ev_tstamp, rtmn_diff) /* difference realtime - monotonic time */
VARx(int, method)