1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540 |
- #ifndef __PJ_CONFIG_H__
- #define __PJ_CONFIG_H__
- #if defined(_MSC_VER)
- # include <pj/compat/cc_msvc.h>
- #elif defined(__clang__)
- # include <pj/compat/cc_clang.h>
- #elif defined(__GNUC__)
- # include <pj/compat/cc_gcc.h>
- #elif defined(__CW32__)
- # include <pj/compat/cc_mwcc.h>
- #elif defined(__MWERKS__)
- # include <pj/compat/cc_codew.h>
- #elif defined(__GCCE__)
- # include <pj/compat/cc_gcce.h>
- #elif defined(__ARMCC__)
- # include <pj/compat/cc_armcc.h>
- #else
- # error "Unknown compiler."
- #endif
- #ifndef PJ_ALIGN_DATA
- # error "PJ_ALIGN_DATA is not defined!"
- #endif
- #if defined(PJ_AUTOCONF)
-
- # include <pj/compat/os_auto.h>
- #elif defined(PJ_SYMBIAN) && PJ_SYMBIAN!=0
-
- # include <pj/compat/os_symbian.h>
- #elif defined(PJ_WIN32_WINCE) || defined(_WIN32_WCE) || defined(UNDER_CE)
-
- # undef PJ_WIN32_WINCE
- # define PJ_WIN32_WINCE 1
- # include <pj/compat/os_win32_wince.h>
-
- # define PJ_WIN32 1
- #elif defined(PJ_WIN32_WINPHONE8) || defined(_WIN32_WINPHONE8)
-
- # undef PJ_WIN32_WINPHONE8
- # define PJ_WIN32_WINPHONE8 1
- # include <pj/compat/os_winphone8.h>
-
- # define PJ_WIN32 1
- #elif defined(PJ_WIN32_UWP) || defined(_WIN32_UWP)
-
- # undef PJ_WIN32_UWP
- # define PJ_WIN32_UWP 1
- # include <pj/compat/os_winuwp.h>
-
- # define PJ_WIN32_WINPHONE8 1
-
- # define PJ_WIN32 1
- #elif defined(PJ_WIN32) || defined(_WIN32) || defined(__WIN32__) || \
- defined(WIN32) || defined(PJ_WIN64) || defined(_WIN64) || \
- defined(WIN64) || defined(__TOS_WIN__)
- # if defined(PJ_WIN64) || defined(_WIN64) || defined(WIN64)
-
- # undef PJ_WIN64
- # define PJ_WIN64 1
- # endif
- # undef PJ_WIN32
- # define PJ_WIN32 1
- # include <pj/compat/os_win32.h>
- #elif defined(PJ_LINUX) || defined(linux) || defined(__linux)
-
- # undef PJ_LINUX
- # define PJ_LINUX 1
- # include <pj/compat/os_linux.h>
- #elif defined(PJ_PALMOS) && PJ_PALMOS!=0
-
- # include <pj/compat/os_palmos.h>
- #elif defined(PJ_SUNOS) || defined(sun) || defined(__sun)
-
- # undef PJ_SUNOS
- # define PJ_SUNOS 1
- # include <pj/compat/os_sunos.h>
- #elif defined(PJ_DARWINOS) || defined(__MACOSX__) || \
- defined (__APPLE__) || defined (__MACH__)
-
- # undef PJ_DARWINOS
- # define PJ_DARWINOS 1
- # include <pj/compat/os_darwinos.h>
- #elif defined(PJ_RTEMS) && PJ_RTEMS!=0
-
- # include <pj/compat/os_rtems.h>
- #else
- # error "Please specify target os."
- #endif
- #if defined(PJ_AUTOCONF)
-
- #include <pj/compat/m_auto.h>
- #elif defined (PJ_M_I386) || defined(_i386_) || defined(i_386_) || \
- defined(_X86_) || defined(x86) || defined(__i386__) || \
- defined(__i386) || defined(_M_IX86) || defined(__I86__)
-
- # undef PJ_M_I386
- # define PJ_M_I386 1
- # define PJ_M_NAME "i386"
- # define PJ_HAS_PENTIUM 1
- # define PJ_IS_LITTLE_ENDIAN 1
- # define PJ_IS_BIG_ENDIAN 0
- #elif defined (PJ_M_X86_64) || defined(__amd64__) || defined(__amd64) || \
- defined(__x86_64__) || defined(__x86_64) || \
- defined(_M_X64) || defined(_M_AMD64)
-
- # undef PJ_M_X86_64
- # define PJ_M_X86_64 1
- # define PJ_M_NAME "x86_64"
- # define PJ_HAS_PENTIUM 1
- # define PJ_IS_LITTLE_ENDIAN 1
- # define PJ_IS_BIG_ENDIAN 0
- #elif defined(PJ_M_IA64) || defined(__ia64__) || defined(_IA64) || \
- defined(__IA64__) || defined( _M_IA64)
-
- # undef PJ_M_IA64
- # define PJ_M_IA64 1
- # define PJ_M_NAME "ia64"
- # define PJ_HAS_PENTIUM 1
- # define PJ_IS_LITTLE_ENDIAN 1
- # define PJ_IS_BIG_ENDIAN 0
- #elif defined (PJ_M_M68K) && PJ_M_M68K != 0
-
- # undef PJ_M_M68K
- # define PJ_M_M68K 1
- # define PJ_M_NAME "m68k"
- # define PJ_HAS_PENTIUM 0
- # define PJ_IS_LITTLE_ENDIAN 0
- # define PJ_IS_BIG_ENDIAN 1
- #elif defined (PJ_M_ALPHA) || defined (__alpha__) || defined (__alpha) || \
- defined (_M_ALPHA)
-
- # undef PJ_M_ALPHA
- # define PJ_M_ALPHA 1
- # define PJ_M_NAME "alpha"
- # define PJ_HAS_PENTIUM 0
- # define PJ_IS_LITTLE_ENDIAN 1
- # define PJ_IS_BIG_ENDIAN 0
- #elif defined(PJ_M_MIPS) || defined(__mips__) || defined(__mips) || \
- defined(__MIPS__) || defined(MIPS) || defined(_MIPS_)
-
- # undef PJ_M_MIPS
- # define PJ_M_MIPS 1
- # define PJ_M_NAME "mips"
- # define PJ_HAS_PENTIUM 0
- # if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN
- # error Endianness must be declared for this processor
- # endif
- #elif defined (PJ_M_SPARC) || defined( __sparc__) || defined(__sparc)
-
- # undef PJ_M_SPARC
- # define PJ_M_SPARC 1
- # define PJ_M_NAME "sparc"
- # define PJ_HAS_PENTIUM 0
- # define PJ_IS_LITTLE_ENDIAN 0
- # define PJ_IS_BIG_ENDIAN 1
- #elif defined(ARM) || defined(_ARM_) || defined(__arm__) || \
- defined(_M_ARM) || defined(_M_ARM64) || defined(__aarch64__)
- # define PJ_HAS_PENTIUM 0
-
- # if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN
- # error Endianness must be declared for this processor
- # endif
- # if defined (PJ_M_ARMV7) || defined(ARMV7)
- # undef PJ_M_ARMV7
- # define PJ_M_ARM7 1
- # define PJ_M_NAME "armv7"
- # elif defined (PJ_M_ARMV4) || defined(ARMV4)
- # undef PJ_M_ARMV4
- # define PJ_M_ARMV4 1
- # define PJ_M_NAME "armv4"
- # elif defined (PJ_M_ARM64) || defined(ARM64) || defined(__aarch64__)
- # undef PJ_M_ARM64
- # define PJ_M_ARM64 1
- # define PJ_M_NAME "arm64"
- # endif
- #elif defined (PJ_M_POWERPC) || defined(__powerpc) || defined(__powerpc__) || \
- defined(__POWERPC__) || defined(__ppc__) || defined(_M_PPC) || \
- defined(_ARCH_PPC)
-
- # undef PJ_M_POWERPC
- # define PJ_M_POWERPC 1
- # define PJ_M_NAME "powerpc"
- # define PJ_HAS_PENTIUM 0
- # if !PJ_IS_LITTLE_ENDIAN && !PJ_IS_BIG_ENDIAN
- # error Endianness must be declared for this processor
- # endif
- #elif defined (PJ_M_NIOS2) || defined(__nios2) || defined(__nios2__) || \
- defined(__NIOS2__) || defined(__M_NIOS2) || defined(_ARCH_NIOS2)
-
- # undef PJ_M_NIOS2
- # define PJ_M_NIOS2 1
- # define PJ_M_NAME "nios2"
- # define PJ_HAS_PENTIUM 0
- # define PJ_IS_LITTLE_ENDIAN 1
- # define PJ_IS_BIG_ENDIAN 0
-
- #else
- # error "Please specify target machine."
- #endif
- #include <pj/compat/size_t.h>
- #include <pj/config_site.h>
- #ifdef DOXYGEN
- # undef PJ_FUNCTIONS_ARE_INLINED
- # undef PJ_HAS_FLOATING_POINT
- # undef PJ_LOG_MAX_LEVEL
- # undef PJ_LOG_MAX_SIZE
- # undef PJ_LOG_USE_STACK_BUFFER
- # undef PJ_TERM_HAS_COLOR
- # undef PJ_POOL_DEBUG
- # undef PJ_HAS_TCP
- # undef PJ_MAX_HOSTNAME
- # undef PJ_IOQUEUE_MAX_HANDLES
- # undef FD_SETSIZE
- # undef PJ_HAS_SEMAPHORE
- # undef PJ_HAS_EVENT_OBJ
- # undef PJ_EXCEPTION_USE_WIN32_SEH
- # undef PJ_HAS_ERROR_STRING
- # define PJ_HAS_IPV6 1
- #endif
- #ifndef PJ_DEBUG
- # ifndef NDEBUG
- # define PJ_DEBUG 1
- # else
- # define PJ_DEBUG 0
- # endif
- #endif
- #ifndef PJ_DEBUG_MUTEX
- # define PJ_DEBUG_MUTEX 0
- #endif
- #ifndef PJ_FUNCTIONS_ARE_INLINED
- # define PJ_FUNCTIONS_ARE_INLINED 0
- #endif
- #ifndef PJ_HAS_FLOATING_POINT
- # define PJ_HAS_FLOATING_POINT 1
- #endif
- #ifndef PJ_LOG_MAX_LEVEL
- # define PJ_LOG_MAX_LEVEL 5
- #endif
- #ifndef PJ_LOG_MAX_SIZE
- # define PJ_LOG_MAX_SIZE 4000
- #endif
- #ifndef PJ_LOG_USE_STACK_BUFFER
- # define PJ_LOG_USE_STACK_BUFFER 1
- #endif
- #ifndef PJ_LOG_ENABLE_INDENT
- # define PJ_LOG_ENABLE_INDENT 1
- #endif
- #ifndef PJ_LOG_INDENT_SIZE
- # define PJ_LOG_INDENT_SIZE 1
- #endif
- #ifndef PJ_LOG_INDENT_CHAR
- # define PJ_LOG_INDENT_CHAR '.'
- #endif
- #ifndef PJ_LOG_SENDER_WIDTH
- # if PJ_HAS_STDINT_H
- # include <stdint.h>
- # if (UINTPTR_MAX == 0xffffffffffffffff)
- # define PJ_LOG_SENDER_WIDTH 22
- # else
- # define PJ_LOG_SENDER_WIDTH 14
- # endif
- # else
- # define PJ_LOG_SENDER_WIDTH 14
- # endif
- #endif
- #ifndef PJ_LOG_THREAD_WIDTH
- # define PJ_LOG_THREAD_WIDTH 12
- #endif
- #ifndef PJ_TERM_HAS_COLOR
- # define PJ_TERM_HAS_COLOR 1
- #endif
- #ifndef PJ_SAFE_POOL
- # define PJ_SAFE_POOL 0
- #endif
- #ifndef PJ_POOL_DEBUG
- # define PJ_POOL_DEBUG 0
- #endif
- #ifndef PJ_POOL_RELEASE_WIPE_DATA
- # define PJ_POOL_RELEASE_WIPE_DATA 0
- #endif
- #ifndef PJ_POOL_MAX_SEARCH_BLOCK_COUNT
- # define PJ_POOL_MAX_SEARCH_BLOCK_COUNT 5
- #endif
- #ifndef PJ_TIMER_DEBUG
- # define PJ_TIMER_DEBUG 1
- #endif
- #ifndef PJ_TIMER_USE_COPY
- # define PJ_TIMER_USE_COPY 1
- #endif
- #ifndef PJ_TIMER_USE_LINKED_LIST
- # define PJ_TIMER_USE_LINKED_LIST 0
- #endif
- #ifndef PJ_GRP_LOCK_DEBUG
- # define PJ_GRP_LOCK_DEBUG 0
- #endif
- #ifndef PJ_THREAD_DEFAULT_STACK_SIZE
- # define PJ_THREAD_DEFAULT_STACK_SIZE 8192
- #endif
- #ifndef PJ_OS_HAS_CHECK_STACK
- # define PJ_OS_HAS_CHECK_STACK 0
- #endif
- #ifndef PJ_HAS_POOL_ALT_API
- # define PJ_HAS_POOL_ALT_API PJ_POOL_DEBUG
- #endif
- #ifndef PJ_HAS_TCP
- # define PJ_HAS_TCP 1
- #endif
- #ifndef PJ_HAS_IPV6
- # define PJ_HAS_IPV6 0
- #endif
-
- #ifndef PJ_MAX_HOSTNAME
- # define PJ_MAX_HOSTNAME (254)
- #endif
- #ifndef PJ_ACTIVESOCK_MAX_CONSECUTIVE_ACCEPT_ERROR
- # define PJ_ACTIVESOCK_MAX_CONSECUTIVE_ACCEPT_ERROR 50
- #endif
- #ifndef PJ_IOQUEUE_MAX_HANDLES
- # define PJ_IOQUEUE_MAX_HANDLES (64)
- #endif
- #ifndef PJ_IOQUEUE_HAS_SAFE_UNREG
- # define PJ_IOQUEUE_HAS_SAFE_UNREG 1
- #endif
- #ifndef PJ_IOQUEUE_DEFAULT_ALLOW_CONCURRENCY
- # define PJ_IOQUEUE_DEFAULT_ALLOW_CONCURRENCY 1
- #endif
- #if (PJ_IOQUEUE_DEFAULT_ALLOW_CONCURRENCY==0) && (PJ_IOQUEUE_HAS_SAFE_UNREG==0)
- # error PJ_IOQUEUE_HAS_SAFE_UNREG must be enabled if ioqueue concurrency \
- is disabled
- #endif
- #ifndef PJ_IOQUEUE_KEY_FREE_DELAY
- # define PJ_IOQUEUE_KEY_FREE_DELAY 500
- #endif
- #ifndef PJ_IOQUEUE_DEFAULT_EPOLL_FLAGS
- # define PJ_IOQUEUE_DEFAULT_EPOLL_FLAGS PJ_IOQUEUE_EPOLL_AUTO
- #endif
- #ifndef PJ_FD_SETSIZE_SETABLE
- # if (defined(PJ_HAS_WINSOCK_H) && PJ_HAS_WINSOCK_H!=0) || \
- (defined(PJ_HAS_WINSOCK2_H) && PJ_HAS_WINSOCK2_H!=0)
- # define PJ_FD_SETSIZE_SETABLE 1
- # else
- # define PJ_FD_SETSIZE_SETABLE 0
- # endif
- #endif
- #if PJ_FD_SETSIZE_SETABLE
-
- # ifndef FD_SETSIZE
- # define FD_SETSIZE PJ_IOQUEUE_MAX_HANDLES
- # endif
- #else
-
- #endif
- #ifndef PJ_IP_HELPER_IGNORE_LOOPBACK_IF
- # define PJ_IP_HELPER_IGNORE_LOOPBACK_IF 1
- #endif
- #ifndef PJ_HAS_SEMAPHORE
- # define PJ_HAS_SEMAPHORE 1
- #endif
- #ifndef PJ_SEMAPHORE_USE_DISPATCH_SEM
- # if defined(PJ_DARWINOS) && PJ_DARWINOS != 0
- # define PJ_SEMAPHORE_USE_DISPATCH_SEM 1
- # else
- # define PJ_SEMAPHORE_USE_DISPATCH_SEM 0
- # endif
- #endif
- #ifndef PJ_HAS_EVENT_OBJ
- # define PJ_HAS_EVENT_OBJ 1
- #endif
- #ifndef PJ_MAXPATH
- # define PJ_MAXPATH 260
- #endif
- #ifndef PJ_HAS_EXCEPTION_NAMES
- # define PJ_HAS_EXCEPTION_NAMES 1
- #endif
- #ifndef PJ_MAX_EXCEPTION_ID
- # define PJ_MAX_EXCEPTION_ID 16
- #endif
- #ifndef PJ_EXCEPTION_USE_WIN32_SEH
- # define PJ_EXCEPTION_USE_WIN32_SEH 0
- #endif
- #ifndef PJ_TIMESTAMP_USE_RDTSC
- # define PJ_TIMESTAMP_USE_RDTSC 0
- #endif
- #ifndef PJ_NATIVE_ERR_POSITIVE
- # define PJ_NATIVE_ERR_POSITIVE 1
- #endif
-
- #ifndef PJ_HAS_ERROR_STRING
- # define PJ_HAS_ERROR_STRING 1
- #endif
- #ifndef PJ_HAS_STRICMP_ALNUM
- # define PJ_HAS_STRICMP_ALNUM 0
- #endif
- #ifndef PJ_BAN_UNSAFE_STR_FUNCS
- # define PJ_BAN_UNSAFE_STR_FUNCS 0
- #endif
- #ifndef PJ_BAN_STRCPY
- # define PJ_BAN_STRCPY PJ_BAN_UNSAFE_STR_FUNCS
- #endif
- #ifndef PJ_BAN_STRNCPY
- # define PJ_BAN_STRNCPY PJ_BAN_UNSAFE_STR_FUNCS
- #endif
- #ifndef PJ_BAN_STRCAT
- # define PJ_BAN_STRCAT PJ_BAN_UNSAFE_STR_FUNCS
- #endif
- #ifndef PJ_BAN_SPRINTF
- # define PJ_BAN_SPRINTF PJ_BAN_UNSAFE_STR_FUNCS
- #endif
- #ifndef PJ_BAN_VSPRINTF
- # define PJ_BAN_VSPRINTF PJ_BAN_UNSAFE_STR_FUNCS
- #endif
- #if defined(PJ_ENABLE_EXTRA_CHECK) && PJ_ENABLE_EXTRA_CHECK==0
- # ifdef _MSC_VER
- # pragma message("Warning: PJ_ENABLE_EXTRA_CHECK macro is deprecated"\
- " and has no effect")
- # else
- # warning "PJ_ENABLE_EXTRA_CHECK macro is deprecated and has no effect"
- # endif
- #endif
- #define PJ_QOS_DUMMY 1
- #define PJ_QOS_BSD 2
- #define PJ_QOS_WM 3
- #define PJ_QOS_SYMBIAN 4
- #define PJ_QOS_DARWIN 5
- #ifndef PJ_QOS_IMPLEMENTATION
- # if defined(PJ_WIN32_WINCE) && PJ_WIN32_WINCE && _WIN32_WCE >= 0x502
-
- # define PJ_QOS_IMPLEMENTATION PJ_QOS_WM
- # elif defined(PJ_DARWINOS)
-
- # define PJ_QOS_IMPLEMENTATION PJ_QOS_DARWIN
- # endif
- #endif
- #ifndef PJ_HAS_SSL_SOCK
- # define PJ_HAS_SSL_SOCK 0
- #endif
- #define PJ_SSL_SOCK_IMP_NONE 0
- #define PJ_SSL_SOCK_IMP_OPENSSL 1
- #define PJ_SSL_SOCK_IMP_GNUTLS 2
- #define PJ_SSL_SOCK_IMP_DARWIN 3
- #define PJ_SSL_SOCK_IMP_APPLE 4
- #define PJ_SSL_SOCK_IMP_SCHANNEL 5
- #ifndef PJ_SSL_SOCK_IMP
- # if PJ_HAS_SSL_SOCK==0
- # define PJ_SSL_SOCK_IMP PJ_SSL_SOCK_IMP_NONE
- # else
- # define PJ_SSL_SOCK_IMP PJ_SSL_SOCK_IMP_OPENSSL
- # endif
- #endif
- #ifndef PJ_SSL_SOCK_MAX_CIPHERS
- # define PJ_SSL_SOCK_MAX_CIPHERS 256
- #endif
- #ifndef PJ_SSL_SOCK_OSSL_CIPHERS
- # define PJ_SSL_SOCK_OSSL_CIPHERS "HIGH:-COMPLEMENTOFDEFAULT"
- #endif
- #ifndef PJ_SSL_SOCK_MAX_CURVES
- # define PJ_SSL_SOCK_MAX_CURVES 32
- #endif
- #ifndef PJ_SSL_SOCK_OSSL_USE_THREAD_CB
- # define PJ_SSL_SOCK_OSSL_USE_THREAD_CB 1
- #else
- # define PJ_SSL_SOCK_OSSL_USE_THREAD_CB 0
- #endif
- #ifndef PJ_SOCK_DISABLE_WSAECONNRESET
- # define PJ_SOCK_DISABLE_WSAECONNRESET 1
- #endif
- #ifndef PJ_MAX_SOCKOPT_PARAMS
- # define PJ_MAX_SOCKOPT_PARAMS 4
- #endif
- #ifndef PJ_JNI_HAS_JNI_ONLOAD
- # define PJ_JNI_HAS_JNI_ONLOAD PJ_ANDROID
- #endif
- #define PJ_INLINE(type) PJ_INLINE_SPECIFIER type
- #ifndef PJ_EXPORT_DECL_SPECIFIER
- # define PJ_EXPORT_DECL_SPECIFIER
- #endif
- #ifndef PJ_EXPORT_DEF_SPECIFIER
- # define PJ_EXPORT_DEF_SPECIFIER
- #endif
- #ifndef PJ_IMPORT_DECL_SPECIFIER
- # define PJ_IMPORT_DECL_SPECIFIER
- #endif
- #ifndef PJ_EXPORT_SYMBOL
- # define PJ_EXPORT_SYMBOL(x)
- #endif
- #if defined(PJ_DLL)
- # if defined(PJ_EXPORTING)
- # define PJ_DECL(type) PJ_EXPORT_DECL_SPECIFIER type
- # else
- # define PJ_DECL(type) PJ_IMPORT_DECL_SPECIFIER type
- # endif
- #elif !defined(PJ_DECL)
- # if defined(__cplusplus)
- # define PJ_DECL(type) type
- # else
- # define PJ_DECL(type) extern type
- # endif
- #endif
- #if defined(PJ_DLL) && defined(PJ_EXPORTING)
- # define PJ_DEF(type) PJ_EXPORT_DEF_SPECIFIER type
- #elif !defined(PJ_DEF)
- # define PJ_DEF(type) type
- #endif
- #ifdef __cplusplus
- # define PJ_DECL_NO_RETURN(type) PJ_DECL(type) PJ_NORETURN
- # define PJ_IDECL_NO_RETURN(type) PJ_INLINE(type) PJ_NORETURN
- # define PJ_BEGIN_DECL extern "C" {
- # define PJ_END_DECL }
- #else
- # define PJ_DECL_NO_RETURN(type) PJ_NORETURN PJ_DECL(type)
- # define PJ_IDECL_NO_RETURN(type) PJ_NORETURN PJ_INLINE(type)
- # define PJ_BEGIN_DECL
- # define PJ_END_DECL
- #endif
-
- #if defined(PJ_DLL)
- # if defined(PJ_EXPORTING)
- # define PJ_DECL_DATA(type) PJ_EXPORT_DECL_SPECIFIER extern type
- # else
- # define PJ_DECL_DATA(type) PJ_IMPORT_DECL_SPECIFIER extern type
- # endif
- #elif !defined(PJ_DECL_DATA)
- # define PJ_DECL_DATA(type) extern type
- #endif
-
- #if defined(PJ_DLL) && defined(PJ_EXPORTING)
- # define PJ_DEF_DATA(type) PJ_EXPORT_DEF_SPECIFIER type
- #elif !defined(PJ_DEF_DATA)
- # define PJ_DEF_DATA(type) type
- #endif
- #if PJ_FUNCTIONS_ARE_INLINED
- # define PJ_IDECL(type) PJ_INLINE(type)
- # define PJ_IDEF(type) PJ_INLINE(type)
- #else
- # define PJ_IDECL(type) PJ_DECL(type)
- # define PJ_IDEF(type) PJ_DEF(type)
- #endif
- #define PJ_UNUSED_ARG(arg) (void)arg
- #ifndef PJ_TODO
- # define PJ_TODO(id) TODO___##id:
- #endif
- #ifndef PJ_RACE_ME
- # define PJ_RACE_ME(x)
- #endif
- #define __pj_throw__(x)
- #ifndef PJ_HAS_HIGH_RES_TIMER
- # error "PJ_HAS_HIGH_RES_TIMER is not defined!"
- #endif
- #if !defined(PJ_HAS_PENTIUM)
- # error "PJ_HAS_PENTIUM is not defined!"
- #endif
- #if !defined(PJ_IS_LITTLE_ENDIAN)
- # error "PJ_IS_LITTLE_ENDIAN is not defined!"
- #endif
- #if !defined(PJ_IS_BIG_ENDIAN)
- # error "PJ_IS_BIG_ENDIAN is not defined!"
- #endif
- #if !defined(PJ_EMULATE_RWMUTEX)
- # error "PJ_EMULATE_RWMUTEX should be defined in compat/os_xx.h"
- #endif
- #if !defined(PJ_THREAD_SET_STACK_SIZE)
- # error "PJ_THREAD_SET_STACK_SIZE should be defined in compat/os_xx.h"
- #endif
- #if !defined(PJ_THREAD_ALLOCATE_STACK)
- # error "PJ_THREAD_ALLOCATE_STACK should be defined in compat/os_xx.h"
- #endif
- PJ_BEGIN_DECL
- #define PJ_VERSION_NUM_MAJOR 2
- #define PJ_VERSION_NUM_MINOR 14
- #define PJ_VERSION_NUM_REV 0
- #define PJ_VERSION_NUM_EXTRA "-dev"
- #define PJ_VERSION_NUM ((PJ_VERSION_NUM_MAJOR << 24) | \
- (PJ_VERSION_NUM_MINOR << 16) | \
- (PJ_VERSION_NUM_REV << 8))
- PJ_DECL_DATA(const char*) PJ_VERSION;
- PJ_DECL(const char*) pj_get_version(void);
- PJ_DECL(void) pj_dump_config(void);
- PJ_END_DECL
- #endif
|