mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 11:03:12 +00:00
* update to lua 5.4.0-rc1 * remove LUA_ERRGCMM * use age bits for shared * remove unused lbitlib.c * use luaV_fastget * fix #1174 * suspend函数tailcall优化 * 防止没有session导致未调用suspend * luaH_setint check shared (#1184) * set LUA_GCGEN by default * fix #1174 (#1186) checkshared in sweeplist * update to lua 5.4 rc2 * update to lua 5.4 rc4 * move skynet.profile into snlua * Use lua_sethook to interrupt tight loops * remove lua_checksig * critical condition for signals * update to lua 5.4 released * lua 5.4 bugfix * update lua bugfix * fix lua_sharestring (#1224) * update lua * update lua 5.4 * update README * add skynet.select * add test * test error & discard * yield session * request error has no error message * add timeout to skynet.select * bugfix * for lua 5.4 * new version * bugfix * bugfix * use if instead of while * make local * yield in select for * update lua 5.4.1 * change lua version (#1245) Co-authored-by: xiaojin <xiaojin@onemt.com.cn> * update lua version number Co-authored-by: hong <hongling0@gmail.com> Co-authored-by: hong <hongling-0@qq.com> Co-authored-by: 风---自由 <996442717qqcom@gmail.com> Co-authored-by: xiaojin <xiaojin@onemt.com.cn>
46 lines
828 B
C
46 lines
828 B
C
/*
|
|
** $Id: lprefix.h $
|
|
** Definitions for Lua code that must come before any other header file
|
|
** See Copyright Notice in lua.h
|
|
*/
|
|
|
|
#ifndef lprefix_h
|
|
#define lprefix_h
|
|
|
|
|
|
/*
|
|
** Allows POSIX/XSI stuff
|
|
*/
|
|
#if !defined(LUA_USE_C89) /* { */
|
|
|
|
#if !defined(_XOPEN_SOURCE)
|
|
#define _XOPEN_SOURCE 600
|
|
#elif _XOPEN_SOURCE == 0
|
|
#undef _XOPEN_SOURCE /* use -D_XOPEN_SOURCE=0 to undefine it */
|
|
#endif
|
|
|
|
/*
|
|
** Allows manipulation of large files in gcc and some other compilers
|
|
*/
|
|
#if !defined(LUA_32BITS) && !defined(_FILE_OFFSET_BITS)
|
|
#define _LARGEFILE_SOURCE 1
|
|
#define _FILE_OFFSET_BITS 64
|
|
#endif
|
|
|
|
#endif /* } */
|
|
|
|
|
|
/*
|
|
** Windows stuff
|
|
*/
|
|
#if defined(_WIN32) /* { */
|
|
|
|
#if !defined(_CRT_SECURE_NO_WARNINGS)
|
|
#define _CRT_SECURE_NO_WARNINGS /* avoid warnings about ISO C functions */
|
|
#endif
|
|
|
|
#endif /* } */
|
|
|
|
#endif
|
|
|