X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot.git;a=blobdiff_plain;f=moonshot%2Fmech_eap%2Futil.h;fp=moonshot%2Fmech_eap%2Futil.h;h=89c95742f6b7da8b402c9883d9e09a4b6f6c352b;hp=61635bf16464a532c7927d4d744371c793b1b71b;hb=61db926ba5b5aeea2cafe4c5865b17f3fc82fab3;hpb=e534368fd4b6609b58395ef3b0f3a3c13fd31910 diff --git a/moonshot/mech_eap/util.h b/moonshot/mech_eap/util.h index 61635bf..89c9574 100644 --- a/moonshot/mech_eap/util.h +++ b/moonshot/mech_eap/util.h @@ -92,12 +92,20 @@ extern "C" { #define MIN(_a,_b) ((_a)<(_b)?(_a):(_b)) #endif -#if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) +#if !defined(WIN32) && !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) #define GSSEAP_UNUSED __attribute__ ((__unused__)) #else #define GSSEAP_UNUSED #endif +#if !defined(WIN32) +#define GSSEAP_CONSTRUCTOR __attribute__((constructor) +#define GSSEAP_DESTRUCTOR __attribute__((destructor)) +#else +#define GSSEAP_CONSTRUCTOR +#define GSSEAP_DESTRUCTOR +#endif + /* util_buffer.c */ OM_uint32 makeStringBuffer(OM_uint32 *minor,