1 /**************************************************************************** 2 ** 3 ** Copyright (C) 2021 The Qt Company Ltd. 4 ** Contact: https://www.qt.io/licensing/ 5 ** 6 ** This file is part of Qt Creator. 7 ** 8 ** Commercial License Usage 9 ** Licensees holding valid commercial Qt licenses may use this file in 10 ** accordance with the commercial license agreement provided with the 11 ** Software or, alternatively, in accordance with the terms contained in 12 ** a written agreement between you and The Qt Company. For licensing terms 13 ** and conditions see https://www.qt.io/terms-conditions. For further 14 ** information use the contact form at https://www.qt.io/contact-us. 15 ** 16 ** GNU General Public License Usage 17 ** Alternatively, this file may be used under the terms of the GNU 18 ** General Public License version 3 as published by the Free Software 19 ** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT 20 ** included in the packaging of this file. Please review the following 21 ** information to ensure the GNU General Public License requirements will 22 ** be met: https://www.gnu.org/licenses/gpl-3.0.html. 23 ** 24 ****************************************************************************/ 25 26 #pragma once 27 28 #include <string.h> 29 30 #if __has_include(<unistd.h>) 31 #include <unistd.h> 32 #endif 33 34 #if __has_include(<utime.h>) 35 #define HAVE_UTIME 1 36 #endif 37 38 #if (_XOPEN_SOURCE >= 500) && !(_POSIX_C_SOURCE >= 200809L) || _DEFAULT_SOURCE || _BSD_SOURCE 39 #define HAVE_USLEEP 1 40 #endif 41 42 #ifdef _GNU_SOURCE 43 #define HAVE_STRCHRNUL 1 44 #endif 45 46 #if _POSIX_C_SOURCE >= 199309L || _XOPEN_SOURCE >= 500 47 #define HAVE_FDATASYNC 1 48 #endif 49 50 #if _POSIX_C_SOURCE >= 1 || _BSD_SOURCE 51 #define HAVE_LOCALTIME_R 1 52 #else 53 #define HAVE_LOCALTIME_S 1 54 #endif 55 56 #define HAVE_MALLOC_USABLE_SIZE 1 57 #define HAVE_ISNAN 1 58 59 #define SQLITE_THREADSAFE 2 60 #define SQLITE_ENABLE_FTS5 1 61 #define SQLITE_ENABLE_UNLOCK_NOTIFY 1 62 #define SQLITE_ENABLE_JSON1 1 63 #define SQLITE_DEFAULT_FOREIGN_KEYS 1 64 #define SQLITE_TEMP_STORE 3 65 #define SQLITE_DEFAULT_WAL_SYNCHRONOUS 1 66 #define SQLITE_MAX_WORKER_THREADS 1 67 #define SQLITE_DEFAULT_MEMSTATUS 0 68 #define SQLITE_OMIT_DEPRECATED 1 69 #define SQLITE_OMIT_DECLTYPE 1 70 #define SQLITE_MAX_EXPR_DEPTH 0 71 #define SQLITE_OMIT_SHARED_CACHE 1 72 #define SQLITE_USE_ALLOCA 1 73 #define SQLITE_ENABLE_MEMORY_MANAGEMENT 1 74 #define SQLITE_ENABLE_NULL_TRIM 1 75 #define SQLITE_ALLOW_COVERING_INDEX_SCAN 1 76 #define SQLITE_OMIT_EXPLAIN 1 77 #define SQLITE_OMIT_LOAD_EXTENSION 1 78 #define SQLITE_OMIT_UTF16 1 79 #define SQLITE_DQS 0 80 #define SQLITE_ENABLE_STAT4 1 81 #define SQLITE_DEFAULT_MMAP_SIZE 268435456 82 #define SQLITE_ENABLE_SESSION 1 83 #define SQLITE_ENABLE_PREUPDATE_HOOK 1 84 #define SQLITE_LIKE_DOESNT_MATCH_BLOBS 1 85 #define SQLITE_OMIT_AUTOINIT 1 86 #define SQLITE_DEFAULT_CACHE_SIZE -100000 87 #define SQLITE_OMIT_AUTORESET 1 88 #define SQLITE_OMIT_EXPLAIN 1 89 #define SQLITE_OMIT_TRACE 1 90 #define SQLITE_DEFAULT_LOCKING_MODE 1 91 #define SQLITE_WIN32_GETVERSIONEX 0 92