Hans Leidekker hans@it.vu.nl writes:
+INT WLDAP32_ber_printf( BerElement *berelement, PCHAR fmt, ... ) +{
- INT ret = LBER_ERROR;
+#ifdef HAVE_LBER_H
- va_list valist;
- TRACE( "(%p, %p)\n", berelement, fmt );
- va_start( valist, fmt );
- ret = ber_printf( berelement, fmt, valist );
- va_end( valist );
This won't work I'm afraid, you would need a ber_vprintf. Though it seems to me you could link directly to the Unix lib from the spec file and avoid all the wrappers.