summaryrefslogtreecommitdiff
path: root/ev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ev.c')
-rw-r--r--ev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ev.c b/ev.c
index f941452..ad3b2e4 100644
--- a/ev.c
+++ b/ev.c
@@ -1195,11 +1195,11 @@ typedef struct
#include "ev_wrap.h"
static struct ev_loop default_loop_struct;
- struct ev_loop *ev_default_loop_ptr;
+ EV_API_DECL struct ev_loop *ev_default_loop_ptr = 0; /* needs to be initialised to make it a defintiino despite extern */
#else
- ev_tstamp ev_rt_now;
+ EV_API_DECL ev_tstamp ev_rt_now = 0; /* needs to be initialised to make it a defintiino despite extern */
#define VAR(name,decl) static decl;
#include "ev_vars.h"
#undef VAR