fixup! make feature probe macros consistent

This commit is contained in:
Aydın Mercan
2025-01-24 11:41:37 +03:00
parent c60dddcb4b
commit 78ec7601f5
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -186,7 +186,7 @@ extern unsigned int isc_mem_defaultflags;
* see https://github.com/jemalloc/jemalloc/issues/2566
* for more information.
*/
#if HAVE_JEMALLOC
#ifdef HAVE_JEMALLOC
/*
* cmocka.h has confliction definitions with the jemalloc header but we only
@@ -203,9 +203,9 @@ extern volatile void *isc__mem_malloc;
isc__mem_malloc = mallocx; \
ISC_INSIST(CMM_ACCESS_ONCE(isc__mem_malloc) != NULL); \
}
#else
#else /* HAVE_JEMALLOC */
#define isc_mem_create(cp) isc__mem_create((cp)_ISC_MEM_FILELINE)
#endif
#endif /* HAVE_JEMALLOC */
void
isc__mem_create(isc_mem_t **_ISC_MEM_FLARG);
+2 -2
View File
@@ -13,7 +13,7 @@
#pragma once
#if !defined(HAVE_JEMALLOC)
#ifndef HAVE_JEMALLOC
#include <stddef.h>
#include <string.h>
@@ -81,4 +81,4 @@ rallocx(void *ptr, size_t size, int flags) {
return ptr;
}
#endif /* !defined(HAVE_JEMALLOC) */
#endif /* !HAVE_JEMALLOC */