From: Ron Koenderink Date: Thu, 19 Jul 2007 21:58:05 +0000 (+0000) Subject: (UPDATE_TIME_LEN): New. X-Git-Tag: v4.3.10~146 X-Git-Url: http://git.pond.sub.org/?p=empserver;a=commitdiff_plain;h=228a545ff3e02fa90ff353337fc90f6b0d7dcba1 (UPDATE_TIME_LEN): New. (update_time): Define with size to make MSVC happy. --- diff --git a/include/server.h b/include/server.h index dd24388e9..15908b441 100644 --- a/include/server.h +++ b/include/server.h @@ -40,7 +40,8 @@ extern int shutdown_pending; extern int update_pending; extern int update_running; extern empth_rwlock_t *update_lock; -extern time_t update_time[16]; +#define UPDATE_TIME_LEN 16 +extern time_t update_time[UPDATE_TIME_LEN]; void market_init(void); void update_main(void); diff --git a/src/lib/global/updtime.c b/src/lib/global/updtime.c index 0c37c6ca4..7829ec668 100644 --- a/src/lib/global/updtime.c +++ b/src/lib/global/updtime.c @@ -35,4 +35,4 @@ #include "server.h" -time_t update_time[]; +time_t update_time[UPDATE_TIME_LEN];