typedef struct sockbuf_sec Sockbuf_Sec;
typedef struct sockbuf_buf Sockbuf_Buf;
-extern Sockbuf_IO ber_pvt_sb_io_tcp;
-extern Sockbuf_IO ber_pvt_sb_io_udp;
+LDAP_F( Sockbuf_IO ) ber_pvt_sb_io_tcp;
+LDAP_F( Sockbuf_IO ) ber_pvt_sb_io_udp;
struct sockbuf {
*/
#define ber_log_printf ber_pvt_log_printf
+#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
+
LDAP_F( int )
ber_log_bprint LDAP_P((
int errlvl,