X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Flber_pvt.h;h=c407f4eab0a6a929d178161921c65b07cf490740;hb=788fa66435d060ff380b99a26668942cd079c1c6;hp=471aa5b685fe5a7f5b2de1edf90f698a85575cf7;hpb=5632c11bd2d91ec2cdf4bc111c5f23c2279c3af2;p=openldap diff --git a/include/lber_pvt.h b/include/lber_pvt.h index 471aa5b685..c407f4eab0 100644 --- a/include/lber_pvt.h +++ b/include/lber_pvt.h @@ -1,3 +1,4 @@ +/* $OpenLDAP$ */ /* * Copyright 1998,1999 The OpenLDAP Foundation, Redwood City, California, USA * All rights reserved. @@ -19,6 +20,15 @@ LDAP_BEGIN_DECL +#ifdef __MINGW32__ +# undef LDAP_F_PRE +# ifdef LIBLBER_DECL +# define LDAP_F_PRE extern __declspec(LIBLBER_DECL) +# else +# define LDAP_F_PRE extern +# endif +#endif + /* * bprint.c */ @@ -29,7 +39,7 @@ ber_pvt_log_printf LDAP_P(( int errlvl, int loglvl, const char *fmt, - ... )); + ... )) LDAP_GCCATTR((format(printf, 3, 4))); LDAP_END_DECL