Pārlūkot izejas kodu

Fixes to compile with OS threads

mingodad 9 gadi atpakaļ
vecāks
revīzija
9f1ba3ff84
2 mainītis faili ar 4 papildinājumiem un 2 dzēšanām
  1. 3 2
      SquiLu/Makefile-SquiLu-ios-through-linux
  2. 1 0
      SquiLu/squilu.cbp

+ 3 - 2
SquiLu/Makefile-SquiLu-ios-through-linux

@@ -52,7 +52,8 @@ CFLAGS = $(INC) -O3 -Wall -fno-strict-aliasing  \
     -DTARGET_IOS=1 -DWITHOUTH_SHA512=1 \
     -DSQ_USE_MKSTEMP=1 \
     -DSQ_USE_LOCALTIME_R=1 \
-    -DSQ_ENABLE_INCLUDES=1
+    -DSQ_ENABLE_INCLUDES=1 \
+    -DSLAVE_VM_WITH_OS_THREADS=1
 
 RESINC = 
 LIBDIR = -L$(MYSDKPREFIX)/lib -L$(MYSDKPREFIX)/lib/system -Llib
@@ -87,7 +88,7 @@ SOURCES= sq/sq.c  \
     ../SquiLu-ext/pdf-font.cpp  \
     ../SquiLu-ext/sq_base64.cpp  \
     ../SquiLu-ext/sq_fpdf.cpp  \
-    ../SquiLu-ext/sq_fs.c  \
+    ../SquiLu-ext/sq_fs.cpp  \
     ../SquiLu-ext/sqlite3.c  \
     ../SquiLu-ext/sq_mix.cpp \
     ../SquiLu-ext/sq_mongoose.cpp  \

+ 1 - 0
SquiLu/squilu.cbp

@@ -1146,6 +1146,7 @@
 			<Add option="-DNO_EXCEPTION_KEY_NOT_FOUND0=1" />
 			<Add option="-DNO_GARBAGE_COLLECTOR00=1" />
 			<Add option="-DTHREADSAFE=1" />
+			<Add option="-DSQLITE_USE_DECIMAL2=1" />
 			<Add option="-DSQLITE_DEFAULT_FILE_FORMAT=4" />
 			<Add option="-DSQLITE_DEFAULT_AUTOVACUUM=1" />
 			<Add option="-DSQLITE_DEFAULT_FOREIGN_KEYS=1" />