util-src/windows.c
changeset 7821 54669df178c2
parent 6792 6b180e77c97a
child 7892 b8d694646597
--- a/util-src/windows.c	Fri Jan 06 13:14:17 2017 +0100
+++ b/util-src/windows.c	Sun Jan 08 14:21:08 2017 +0100
@@ -103,6 +103,9 @@
 };
 
 LUALIB_API int luaopen_util_windows(lua_State* L) {
+#if (LUA_VERSION_NUM > 501)
+	luaL_checkversion(L);
+#endif
 	lua_newtable(L);
 	luaL_setfuncs(L, Reg, 0);
 	lua_pushliteral(L, "-3.14");