aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2016-03-01 13:26:42 +0100
committerMike Pall <mike>2016-03-01 13:26:42 +0100
commit1c45c6a6a2a40c4d0568af74beaae795564b8d08 (patch)
tree125718a72d2f62586cfb8412504662ee057d8229
parent18f6aa97fd93df8e9964c2d22f20f16e6b71b72b (diff)
downloadluajit-1c45c6a6a2a40c4d0568af74beaae795564b8d08.tar.gz
luajit-1c45c6a6a2a40c4d0568af74beaae795564b8d08.tar.bz2
luajit-1c45c6a6a2a40c4d0568af74beaae795564b8d08.zip
Fix build with JIT disabled.
Thanks to Peter Melnichenko.
Diffstat (limited to '')
-rw-r--r--src/lj_buf.c2
-rw-r--r--src/lj_buf.h2
2 files changed, 0 insertions, 4 deletions
diff --git a/src/lj_buf.c b/src/lj_buf.c
index 7b6c2188..9cb27a89 100644
--- a/src/lj_buf.c
+++ b/src/lj_buf.c
@@ -77,7 +77,6 @@ SBuf *lj_buf_putmem(SBuf *sb, const void *q, MSize len)
77 return sb; 77 return sb;
78} 78}
79 79
80#if LJ_HASJIT
81SBuf * LJ_FASTCALL lj_buf_putchar(SBuf *sb, int c) 80SBuf * LJ_FASTCALL lj_buf_putchar(SBuf *sb, int c)
82{ 81{
83 char *p = lj_buf_more(sb, 1); 82 char *p = lj_buf_more(sb, 1);
@@ -85,7 +84,6 @@ SBuf * LJ_FASTCALL lj_buf_putchar(SBuf *sb, int c)
85 setsbufP(sb, p); 84 setsbufP(sb, p);
86 return sb; 85 return sb;
87} 86}
88#endif
89 87
90SBuf * LJ_FASTCALL lj_buf_putstr(SBuf *sb, GCstr *s) 88SBuf * LJ_FASTCALL lj_buf_putstr(SBuf *sb, GCstr *s)
91{ 89{
diff --git a/src/lj_buf.h b/src/lj_buf.h
index 1cf1780b..db72270f 100644
--- a/src/lj_buf.h
+++ b/src/lj_buf.h
@@ -67,9 +67,7 @@ static LJ_AINLINE char *lj_buf_more(SBuf *sb, MSize sz)
67 67
68/* Low-level buffer put operations */ 68/* Low-level buffer put operations */
69LJ_FUNC SBuf *lj_buf_putmem(SBuf *sb, const void *q, MSize len); 69LJ_FUNC SBuf *lj_buf_putmem(SBuf *sb, const void *q, MSize len);
70#if LJ_HASJIT
71LJ_FUNC SBuf * LJ_FASTCALL lj_buf_putchar(SBuf *sb, int c); 70LJ_FUNC SBuf * LJ_FASTCALL lj_buf_putchar(SBuf *sb, int c);
72#endif
73LJ_FUNC SBuf * LJ_FASTCALL lj_buf_putstr(SBuf *sb, GCstr *s); 71LJ_FUNC SBuf * LJ_FASTCALL lj_buf_putstr(SBuf *sb, GCstr *s);
74 72
75static LJ_AINLINE char *lj_buf_wmem(char *p, const void *q, MSize len) 73static LJ_AINLINE char *lj_buf_wmem(char *p, const void *q, MSize len)