Browse Source

Allow disabling the serializer.

Mike Pall 4 years ago
parent
commit
9442226825
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lj_serialize.c

+ 3 - 0
src/lj_serialize.c

@@ -7,6 +7,8 @@
 #define LUA_CORE
 #define LUA_CORE
 
 
 #include "lj_obj.h"
 #include "lj_obj.h"
+
+#if LJ_HASBUFFER
 #include "lj_err.h"
 #include "lj_err.h"
 #include "lj_buf.h"
 #include "lj_buf.h"
 #include "lj_str.h"
 #include "lj_str.h"
@@ -349,3 +351,4 @@ StrBuf * LJ_FASTCALL lj_serialize_get(StrBuf *sbuf, TValue *o)
   return sbuf;
   return sbuf;
 }
 }
 
 
+#endif