File:  [parser3project] / parser3 / src / include / pa_config_fixed.h
Revision 1.101: download - view: text, annotated - select for diffs - revision graph
Fri Oct 9 17:14:18 2026 UTC (2 weeks, 4 days ago) by moko
Branches: MAIN
CVS tags: HEAD
msvc: hiredis added, pcre2 added under windows (related to feature #1304)

/** @file
	Parser: Configure file for autoconf-disabled platforms.

	Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com)
	Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru>
*/

#ifndef PA_CONFIG_FIXED_H
#define PA_CONFIG_FIXED_H

#define IDENT_PA_CONFIG_FIXED_H "$Id: pa_config_fixed.h,v 1.101 2026/10/09 17:14:18 moko Exp $"

#if _MSC_VER < 1310
#define inline  __inline
#endif

#define HAVE_STDIO_H
#define HAVE_SYS_TYPES_H
#define HAVE_SYS_STAT_H
#define HAVE_STDLIB_H
#define HAVE_STDDEF_H
#define HAVE_MEMORY_H
#define HAVE_STRING_H

#define HAVE_ASSERT_H
#define HAVE_LIMITS_H
#define HAVE_CTYPE_H
#define HAVE_MATH_H
#define HAVE_PROCESS_H
#define HAVE_STDARG_H
#define HAVE_SETJMP_H

#define HAVE_ERRNO_H
#define HAVE_FCNTL_H
#define HAVE_IO_H
#define HAVE_SYS_LOCKING_H

#define HAVE_WINSOCK_H
#define HAVE_TLS 1

#define HAVE_TIME_H
#define HAVE_TIMEZONE
#define HAVE_DAYLIGHT

#define USE_SMTP
#define PA_LITTLE_ENDIAN
#define PA_WITH_SJLJ_EXCEPTIONS

//types

#ifndef ssize_t
#ifdef _WIN64
typedef __int64 ssize_t;
#else
typedef int ssize_t;
#endif
#endif

#ifndef uint8_t
typedef unsigned __int8 uint8_t;
#endif

#ifndef uint16_t
typedef unsigned __int16 uint16_t;
#endif

#ifndef uint32_t
typedef unsigned __int32 uint32_t;
#endif

#ifndef uint64_t
typedef unsigned __int64 uint64_t;
#endif

#ifndef int64_t
typedef __int64 int64_t;
#endif

#define LT_MODULE_EXT ".dll"

// disable any execs (file::exec, file::cgi, unix mail:send)
//#define NO_PA_EXECS

// disable stringstream usage
//#define NO_STRINGSTREAM

#define GC_NOT_DLL

// PCRE2 (win32\pcre2); comment it out to build with PCRE 8.x (win32\pcre)
#define HAVE_PCRE2

// otherwise functions in libpcre will be declared as __declspec(dllimport)
#define PCRE_STATIC
#define PCRE2_STATIC

// xml-abled parser
#define XML

#define XML_STATIC

// otherwise functions in libxml2 will be declared as __declspec(dllimport)
#ifdef XML_STATIC
#define LIBXML_STATIC
#endif

#define WITH_AMQP

// Prebuilt librabbitmq has no TLS support; install a TLS-enabled version (adds a dependency on OpenSSL DLLs)
// using "vcpkg install librabbitmq[ssl]:x64-windows" and replace the library files in win32\rabbitmq
//#define WITH_AMQP_SSL

#define WITH_REDIS

// Prebuilt hiredis has no TLS support; install a TLS-enabled version (adds hiredis_ssl.lib and a dependency on OpenSSL DLLs)
// using "vcpkg install hiredis[ssl]:x64-windows" and replace the library files in win32\redis
//#define WITH_REDIS_SSL

#endif

E-mail: