diff --git a/.travis.yml b/.travis.yml index 7a336c4..2de611d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,24 +1,23 @@ -language: erlang +language: ñ env: global: - - PLATFORM=linux - LUAROCKS_VER=2.2.0 matrix: - - LUA=lua5.1 LUA_SFX= - - LUA=lua5.2 LUA_SFX= - - LUA=luajit LUA_SFX=jit - - LUA=lua5.3 LUA_SFX= + - LUA=lua5.1 + - LUA=lua5.2 + - LUA=lua5.3 + - LUA=luajit before_install: - - bash -x .travis/setup_lua.sh + - bash .travis/setup_lua.sh - sudo pip install cpp-coveralls install: - sudo luarocks make rockspec/lua-cmsgpack-scm-1.rockspec CFLAGS="-O2 -fPIC -ftest-coverage -fprofile-arcs" LIBFLAG="-shared --coverage" script: - - lua$LUA_SFX test.lua + - lua test.lua after_success: - coveralls diff --git a/lua_cmsgpack.c b/lua_cmsgpack.c index c7659ee..7522d62 100644 --- a/lua_cmsgpack.c +++ b/lua_cmsgpack.c @@ -18,6 +18,10 @@ #define LUACMSGPACK_MAX_NESTING 16 /* Max tables nesting. */ #endif +#ifdef _MSC_VER + #define isinf(x) (!_finite(x)) +#endif + /* Check if float or double can be an integer without loss of precision */ #define IS_INT_TYPE_EQUIVALENT(x, T) (!isinf(x) && (T)(x) == (x))