Line 0
Link Here
|
0 |
- |
1 |
diff --git a/ext/sqlite3/libsqlite/sqlite3.c b/ext/sqlite3/libsqlite/sqlite3.c |
|
|
2 |
index ea5ba16..1de7814 100644 |
3 |
--- a/ext/sqlite3/libsqlite/sqlite3.c |
4 |
+++ b/ext/sqlite3/libsqlite/sqlite3.c |
5 |
@@ -29466,7 +29466,7 @@ SQLITE_PRIVATE int sqlite3SafetyCheckSickOrOk(sqlite3 *db){ |
6 |
** overflow, leave *pA unchanged and return 1. |
7 |
*/ |
8 |
SQLITE_PRIVATE int sqlite3AddInt64(i64 *pA, i64 iB){ |
9 |
-#if GCC_VERSION>=5004000 |
10 |
+#if GCC_VERSION>=5004000 && !(defined __LCC__ && __LCC__ <= 123) |
11 |
return __builtin_add_overflow(*pA, iB, pA); |
12 |
#else |
13 |
i64 iA = *pA; |
14 |
@@ -29486,7 +29486,7 @@ SQLITE_PRIVATE int sqlite3AddInt64(i64 *pA, i64 iB){ |
15 |
#endif |
16 |
} |
17 |
SQLITE_PRIVATE int sqlite3SubInt64(i64 *pA, i64 iB){ |
18 |
-#if GCC_VERSION>=5004000 |
19 |
+#if GCC_VERSION>=5004000 && !(defined __LCC__ && __LCC__ <= 123) |
20 |
return __builtin_sub_overflow(*pA, iB, pA); |
21 |
#else |
22 |
testcase( iB==SMALLEST_INT64+1 ); |
23 |
@@ -29501,7 +29501,7 @@ SQLITE_PRIVATE int sqlite3SubInt64(i64 *pA, i64 iB){ |
24 |
#endif |
25 |
} |
26 |
SQLITE_PRIVATE int sqlite3MulInt64(i64 *pA, i64 iB){ |
27 |
-#if GCC_VERSION>=5004000 |
28 |
+#if GCC_VERSION>=5004000 && !(defined __LCC__ && __LCC__ <= 123) |
29 |
return __builtin_mul_overflow(*pA, iB, pA); |
30 |
#else |
31 |
i64 iA = *pA; |