diff options
author | Pete Hurst <pete@streamuniverse.tv> | 2013-04-02 10:28:28 +0100 |
---|---|---|
committer | Pete Hurst <pete@streamuniverse.tv> | 2013-04-02 10:34:38 +0100 |
commit | 548c57ac25de9273c52260f7fbaed9ebd1b65da6 (patch) | |
tree | b5538040539702c7e14f050ea28a3362a8896486 /crawl-ref/source/l_crawl.cc | |
parent | ae3f8426ee09181298dd5f982b2a53832fdfa93b (diff) | |
download | crawl-ref-548c57ac25de9273c52260f7fbaed9ebd1b65da6.tar.gz crawl-ref-548c57ac25de9273c52260f7fbaed9ebd1b65da6.zip |
Allow crawl.millis() Lua call to be used on Windows
Diffstat (limited to 'crawl-ref/source/l_crawl.cc')
-rw-r--r-- | crawl-ref/source/l_crawl.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/crawl-ref/source/l_crawl.cc b/crawl-ref/source/l_crawl.cc index fd6e63ea63..bd148bfb19 100644 --- a/crawl-ref/source/l_crawl.cc +++ b/crawl-ref/source/l_crawl.cc @@ -43,10 +43,8 @@ module "crawl" #include "view.h" #include "worley.h" -#ifdef UNIX #include <sys/time.h> #include <time.h> -#endif ///////////////////////////////////////////////////////////////////// // User accessible @@ -1073,8 +1071,6 @@ LUAFN(_crawl_redraw_stats) return 0; } - -#ifdef UNIX LUAFN(_crawl_millis) { struct timeval tv; @@ -1089,7 +1085,6 @@ LUAFN(_crawl_millis) lua_pushnumber(ls, tv.tv_sec * 1000 + tv.tv_usec / 1000); return 1; } -#endif static string _crawl_make_name(lua_State *ls) { @@ -1184,9 +1179,7 @@ static const struct luaL_reg crawl_dlib[] = { "redraw_view", _crawl_redraw_view }, { "redraw_stats", _crawl_redraw_stats }, { "god_speaks", _crawl_god_speaks }, -#ifdef UNIX { "millis", _crawl_millis }, -#endif { "make_name", crawl_make_name }, { "set_max_runes", _crawl_set_max_runes }, { "tutorial_hunger", crawl_tutorial_hunger }, |