--- parser3/src/include/pa_config_includes.h 2026/05/28 14:45:46 1.80 +++ parser3/src/include/pa_config_includes.h 2026/10/29 10:30:36 1.83 @@ -190,6 +190,11 @@ inline size_t min(size_t a, size_t b){ r #endif // __cplusplus +// $response:timeout needs the timer that signals the calling thread and the OS id of the thread +#if defined(HAVE_GETTID) || defined(HAVE_PTHREAD_GETTHREADID_NP) +# define PA_RESPONSE_TIMEOUT +#endif + // libgc usage configuration //#define PA_DEBUG_DISABLE_GC @@ -247,6 +252,10 @@ inline size_t min(size_t a, size_t b){ r #endif #ifdef _MSC_VER + +// must be the very first Windows include: to prevent windows.h auto-include the legacy winsock.h +#include + // VS 2003 #pragma warning(disable:4355) // using this in calls to parent constructors #pragma warning(disable:4291) // no matching operator delete found; memory will not be freed if initialization throws an exception @@ -258,6 +267,9 @@ inline size_t min(size_t a, size_t b){ r #pragma warning(disable:4511) // copy constructor could not be generated (vs2003 specific) // VS 2015 #pragma warning(disable:4267) // conversion from 'size_t' to 'int', possible loss of data +#pragma warning(disable:4456) // local declaration hides another local +#pragma warning(disable:4458) // declaration hides class member +#pragma warning(disable:4459) // declaration hides global #endif #endif