Fix build with JIT disabled.

Thanks to Peter Melnichenko.
This commit is contained in:
Mike Pall 2016-03-01 13:26:42 +01:00
parent 18f6aa97fd
commit 1c45c6a6a2
2 changed files with 0 additions and 4 deletions

View File

@ -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)
{ {

View File

@ -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)