aboutsummaryrefslogtreecommitdiff
path: root/src/sqliteInt.h
diff options
context:
space:
mode:
authordan <Dan Kennedy>2020-12-10 18:07:01 +0000
committerdan <Dan Kennedy>2020-12-10 18:07:01 +0000
commit46a6b1a1be69c85e203afdcdaa68b84e6dab2ed0 (patch)
tree8499aae6b41a6c37fe9170aef7ed9ead71ce08e6 /src/sqliteInt.h
parent7aae73588aeb9fd33d26f0d0a654bfbebdccf72c (diff)
parent70f3eda5bedef47246d14a03e6ce4ce8a5c2ff50 (diff)
downloadsqlite-46a6b1a1be69c85e203afdcdaa68b84e6dab2ed0.tar.gz
sqlite-46a6b1a1be69c85e203afdcdaa68b84e6dab2ed0.zip
Merge trunk changes into this branch.
FossilOrigin-Name: 7337eed629b4537b8fc2dc87c3c71d0a664128a91fd00f3c5f18843505beee90
Diffstat (limited to 'src/sqliteInt.h')
-rw-r--r--src/sqliteInt.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/sqliteInt.h b/src/sqliteInt.h
index fa24bf9ac..7b79208ce 100644
--- a/src/sqliteInt.h
+++ b/src/sqliteInt.h
@@ -119,6 +119,18 @@
# define MSVC_VERSION 0
#endif
+/*
+** Some C99 functions in "math.h" are only present for MSVC when its version
+** is associated with Visual Studio 2013 or higher.
+*/
+#ifndef SQLITE_HAVE_C99_MATH_FUNCS
+# if MSVC_VERSION==0 || MSVC_VERSION>=1800
+# define SQLITE_HAVE_C99_MATH_FUNCS (1)
+# else
+# define SQLITE_HAVE_C99_MATH_FUNCS (0)
+# endif
+#endif
+
/* Needed for various definitions... */
#if defined(__GNUC__) && !defined(_GNU_SOURCE)
# define _GNU_SOURCE