1#if !defined (ORG_FOSSIL_SCM_FSL_CONFIG_H_INCLUDED)
2#define ORG_FOSSIL_SCM_FSL_CONFIG_H_INCLUDED
16#if !defined(_ISOC99_SOURCE)
19# define _ISOC99_SOURCE
21#if !defined(_C99_SOURCE)
27#if !defined(FSL_AUX_SCHEMA)
28# error "Expecting FSL_AUX_SCHEMA to be defined by the configuration bits."
30#if !defined(FSL_LIBRARY_VERSION)
31# error "Expecting FSL_LIBRARY_VERSION to be defined by the configuration bits."
34#undef FSL_SHA1_HARDENED
43#define FSL_SHA1_HARDENED 1
52#if !defined(FSL_API_ARMOR)
53# define FSL_API_ARMOR 1
58# if defined(BUILD_libfossil_static) || defined(FSL_AMALGAMATION_BUILD)
59# define FSL_EXPORT extern
60# elif defined(BUILD_libfossil)
61# define FSL_EXPORT extern __declspec(dllexport)
63# define FSL_EXPORT extern __declspec(dllimport)
66# define FSL_EXPORT extern
69#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L)
70# if defined(__cplusplus) && !defined(__STDC_FORMAT_MACROS)
72# define __STDC_FORMAT_MACROS
74# error "This tree requires a standards-compliant C99-capable compiler."
79# define FSL_PLATFORM_IS_WINDOWS 1
80# define FSL_PLATFORM_IS_UNIX 0
81# define FSL_PLATFORM_PLATFORM "windows"
85# define __func__ "(func)"
87# define __func__ __FUNCTION__
90# ifndef _CRT_SECURE_NO_WARNINGS
91# define _CRT_SECURE_NO_WARNINGS
94# pragma warning ( disable : 4996 )
96# pragma warning ( disable : 4244 )
97# pragma warning ( disable : 4761 )
98# pragma warning ( disable : 4267 )
100# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
102#elif defined(__MINGW32__)
103# define FSL_PLATFORM_IS_WINDOWS 1
104# define FSL_PLATFORM_IS_UNIX 0
105# define FSL_PLATFORM_PLATFORM "windows"
106#elif defined(__CYGWIN__)
107# define FSL_PLATFORM_IS_WINDOWS 0
108# define FSL_PLATFORM_IS_UNIX 1
109# define FSL_PLATFORM_PLATFORM "unix"
111# define FSL_PLATFORM_IS_WINDOWS 0
112# define FSL_PLATFORM_IS_UNIX 1
113# define FSL_PLATFORM_PLATFORM "unix"
116#if !defined(HAVE_SIGACTION)
117# if defined(FSL_PLATFORM_IS_UNIX)
118# define HAVE_SIGACTION 1
120# define HAVE_SIGACTION 0
160#define FSL_INT_T_PFMT PRIi64
165#define FSL_INT_T_SFMT SCNi64
170#define FSL_UINT_T_PFMT PRIu64
175#define FSL_UINT_T_SFMT SCNu64
181#define FSL_JULIAN_T_PFMT ".17g"
247#define FSL_SIZE_T_PFMT FSL_UINT_T_PFMT
253#define FSL_SIZE_T_SFMT FSL_UINT_T_SFMT
279#define FSL_ID_T_PFMT PRIi32
285#define FSL_ID_T_SFMT SCNi32
302#define FSL_TIME_T_PFMT PRIi64
308#define FSL_TIME_T_SFMT SCNi64
314#define FSL_CONFIG_ENABLE_TIMER 1
316#if !defined(FSL_ENABLE_SQLITE_REGEXP)
317# define FSL_ENABLE_SQLITE_REGEXP 0
327#define FSL_BLOB_MAX_SIZE 0x7fff0000
329#if !defined(FSL_SWITCH_FALL_THROUGH)
330# if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ >= 7)
342# define FSL_SWITCH_FALL_THROUGH __attribute__ ((fallthrough))
344# define FSL_SWITCH_FALL_THROUGH
352#if !defined(fsl__unused)
int32_t fsl_id_t
fsl_id_t is a signed integer type used to store database record IDs.
uint64_t fsl_size_t
fsl_size_t is an unsigned integer type used to denote absolute ranges and lengths.
int64_t fsl_time_t
The type used to represent type values.
uint32_t fsl_flag32_t
A 32-bit unsigned int type.
int64_t fsl_int_t
fsl_int_t is a signed integer type used to denote "relative" ranges and lengths, or to tell a routine...
uint64_t fsl_uint_t
The unsigned counterpart of fsl_int_t.