From: Luke Howard Date: Sat, 10 Sep 2011 17:49:27 +0000 (+0100) Subject: add GSSEAP_CONSTRUCTOR/DESTRUCTOR macro X-Git-Url: http://www.project-moonshot.org/gitweb/?p=mech_eap.orig;a=commitdiff_plain;h=45784a92fca96a690034b94f3b1969decd0acb1e add GSSEAP_CONSTRUCTOR/DESTRUCTOR macro --- diff --git a/mech_eap/eap_mech.c b/mech_eap/eap_mech.c index fb827dd..995a8ee 100644 --- a/mech_eap/eap_mech.c +++ b/mech_eap/eap_mech.c @@ -165,8 +165,8 @@ gssEapInitLibRadsec(OM_uint32 *minor) return GSS_S_COMPLETE; } -static void gssEapInitiatorInit(void) __attribute__((constructor)); -static void gssEapFinalize(void) __attribute__((destructor)); +static void gssEapInitiatorInit(void) GSSEAP_CONSTRUCTOR; +static void gssEapFinalize(void) GSSEAP_DESTRUCTOR; static void gssEapInitiatorInit(void) diff --git a/mech_eap/util.h b/mech_eap/util.h index 4c0756e..a27209f 100644 --- a/mech_eap/util.h +++ b/mech_eap/util.h @@ -748,6 +748,9 @@ verifyTokenHeader(OM_uint32 *minor, #define GSSAPI_CALLCONV KRB5_CALLCONV #endif +#define GSSEAP_CONSTRUCTOR __attribute__((constructor)) +#define GSSEAP_DESTRUCTOR __attribute__((destructor)) + #define GSSEAP_NOT_IMPLEMENTED do { \ assert(0 && "not implemented"); \ *minor = ENOSYS; \