diff --git a/lib/isc/include/isc/util.h b/lib/isc/include/isc/util.h index 64c26587ac..f0f7f85fa4 100644 --- a/lib/isc/include/isc/util.h +++ b/lib/isc/include/isc/util.h @@ -49,11 +49,11 @@ #endif /* __GNUC__ */ #if HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR && HAVE_FUNC_ATTRIBUTE_DESTRUCTOR -#define ISC_CONSTRUCTOR(priority) __attribute__((constructor(priority))) -#define ISC_DESTRUCTOR(priority) __attribute__((destructor(priority))) +#define ISC_CONSTRUCTOR __attribute__((constructor)) +#define ISC_DESTRUCTOR __attribute__((destructor)) #elif WIN32 -#define ISC_CONSTRUCTOR(priority) -#define ISC_DESTRUCTOR(priority) +#define ISC_CONSTRUCTOR +#define ISC_DESTRUCTOR #endif /*% diff --git a/lib/isc/lib.c b/lib/isc/lib.c index 31724218ff..2d6950ad63 100644 --- a/lib/isc/lib.c +++ b/lib/isc/lib.c @@ -36,9 +36,9 @@ isc_lib_register(void) { } void -isc__initialize(void) ISC_CONSTRUCTOR(101); +isc__initialize(void) ISC_CONSTRUCTOR; void -isc__shutdown(void) ISC_DESTRUCTOR(101); +isc__shutdown(void) ISC_DESTRUCTOR; void isc__initialize(void) {