mirror of
https://github.com/LuaJIT/LuaJIT.git
synced 2025-02-07 23:24:09 +00:00
Fix build with JIT disabled.
Thanks to Peter Melnichenko.
This commit is contained in:
parent
18f6aa97fd
commit
1c45c6a6a2
@ -77,7 +77,6 @@ SBuf *lj_buf_putmem(SBuf *sb, const void *q, MSize len)
|
|||||||
return sb;
|
return sb;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if LJ_HASJIT
|
|
||||||
SBuf * LJ_FASTCALL lj_buf_putchar(SBuf *sb, int c)
|
SBuf * LJ_FASTCALL lj_buf_putchar(SBuf *sb, int c)
|
||||||
{
|
{
|
||||||
char *p = lj_buf_more(sb, 1);
|
char *p = lj_buf_more(sb, 1);
|
||||||
@ -85,7 +84,6 @@ SBuf * LJ_FASTCALL lj_buf_putchar(SBuf *sb, int c)
|
|||||||
setsbufP(sb, p);
|
setsbufP(sb, p);
|
||||||
return sb;
|
return sb;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
SBuf * LJ_FASTCALL lj_buf_putstr(SBuf *sb, GCstr *s)
|
SBuf * LJ_FASTCALL lj_buf_putstr(SBuf *sb, GCstr *s)
|
||||||
{
|
{
|
||||||
|
@ -67,9 +67,7 @@ static LJ_AINLINE char *lj_buf_more(SBuf *sb, MSize sz)
|
|||||||
|
|
||||||
/* Low-level buffer put operations */
|
/* Low-level buffer put operations */
|
||||||
LJ_FUNC SBuf *lj_buf_putmem(SBuf *sb, const void *q, MSize len);
|
LJ_FUNC SBuf *lj_buf_putmem(SBuf *sb, const void *q, MSize len);
|
||||||
#if LJ_HASJIT
|
|
||||||
LJ_FUNC SBuf * LJ_FASTCALL lj_buf_putchar(SBuf *sb, int c);
|
LJ_FUNC SBuf * LJ_FASTCALL lj_buf_putchar(SBuf *sb, int c);
|
||||||
#endif
|
|
||||||
LJ_FUNC SBuf * LJ_FASTCALL lj_buf_putstr(SBuf *sb, GCstr *s);
|
LJ_FUNC SBuf * LJ_FASTCALL lj_buf_putstr(SBuf *sb, GCstr *s);
|
||||||
|
|
||||||
static LJ_AINLINE char *lj_buf_wmem(char *p, const void *q, MSize len)
|
static LJ_AINLINE char *lj_buf_wmem(char *p, const void *q, MSize len)
|
||||||
|
Loading…
Reference in New Issue
Block a user