--- parser3/src/include/pa_config_includes.h 2024/12/23 16:59:17 1.76 +++ parser3/src/include/pa_config_includes.h 2025/08/01 16:14:44 1.78 @@ -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))