--- parser3/src/include/pa_config_includes.h 2024/12/23 16:59:17 1.76 +++ parser3/src/include/pa_config_includes.h 2026/04/25 13:38:46 1.79 @@ -1,7 +1,7 @@ /** @file Parser: includes all Configure-d headers - Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com) Authors: Konstantin Morshnev , Alexandr Petrosian when used Configure [HAVE_CONFIG_H] it uses defines from Configure, @@ -153,16 +153,12 @@ # include #endif - -#if TIME_WITH_SYS_TIME +#ifdef HAVE_SYS_TIME_H # include +#endif + +#ifdef HAVE_TIME_H # include -#else -# ifdef HAVE_SYS_TIME_H -# include -# else -# include -# endif #endif #ifdef HAVE_PCRE2 @@ -201,7 +197,7 @@ inline size_t min(size_t a, size_t b){ r #define GC_MALLOC(size) memset(malloc(size), 0 , size) #define GC_MALLOC_ATOMIC(size) memset(malloc(size), 0 , size) -#define GC_REALLOC(ptr, size) realloc(ptr, size) +#define GC_REALLOC(ptr, size) realloc(ptr, size) // warning: non-gc realloc doesn't zero expanded region #define GC_FREE(ptr) free(ptr) #define GC_NEW(t) (t *)GC_MALLOC(sizeof (t))