wldap32: Define a debug channel only when we are using it.

Signed-off-by: Gerald Pfeifer <gerald@pfeifer.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Gerald Pfeifer 2020-02-05 21:44:14 +01:00 committed by Alexandre Julliard
parent ce0f263a02
commit c6e45649fe
13 changed files with 24 additions and 2 deletions

View File

@ -34,9 +34,9 @@
#include "wldap32.h" #include "wldap32.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#ifdef HAVE_LDAP
static LDAPMod *nullattrs[] = { NULL }; static LDAPMod *nullattrs[] = { NULL };
#endif #endif

View File

@ -26,7 +26,9 @@
#include "winldap.h" #include "winldap.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#endif
#ifndef LBER_ERROR #ifndef LBER_ERROR
# define LBER_ERROR (~0U) # define LBER_ERROR (~0U)

View File

@ -34,7 +34,9 @@
#include "wldap32.h" #include "wldap32.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#endif
/*********************************************************************** /***********************************************************************
* ldap_bindA (WLDAP32.@) * ldap_bindA (WLDAP32.@)

View File

@ -34,7 +34,9 @@
#include "wldap32.h" #include "wldap32.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#endif
/*********************************************************************** /***********************************************************************
* ldap_compareA (WLDAP32.@) * ldap_compareA (WLDAP32.@)

View File

@ -34,7 +34,9 @@
#include "wldap32.h" #include "wldap32.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#endif
/*********************************************************************** /***********************************************************************
* ldap_control_freeA (WLDAP32.@) * ldap_control_freeA (WLDAP32.@)

View File

@ -34,7 +34,9 @@
#include "wldap32.h" #include "wldap32.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#endif
/*********************************************************************** /***********************************************************************
* ldap_deleteA (WLDAP32.@) * ldap_deleteA (WLDAP32.@)

View File

@ -34,7 +34,9 @@
#include "wldap32.h" #include "wldap32.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#endif
/*********************************************************************** /***********************************************************************
* ldap_dn2ufnA (WLDAP32.@) * ldap_dn2ufnA (WLDAP32.@)

View File

@ -34,9 +34,9 @@
#include "wldap32.h" #include "wldap32.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#ifdef HAVE_LDAP
static LDAPMod *nullmods[] = { NULL }; static LDAPMod *nullmods[] = { NULL };
#endif #endif

View File

@ -34,7 +34,9 @@
#include "wldap32.h" #include "wldap32.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#endif
/*********************************************************************** /***********************************************************************
* ldap_modrdnA (WLDAP32.@) * ldap_modrdnA (WLDAP32.@)

View File

@ -34,7 +34,9 @@
#include "wldap32.h" #include "wldap32.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#endif
/*********************************************************************** /***********************************************************************
* ldap_get_optionA (WLDAP32.@) * ldap_get_optionA (WLDAP32.@)

View File

@ -34,7 +34,9 @@
#include "wldap32.h" #include "wldap32.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#endif
/*********************************************************************** /***********************************************************************
* ldap_parse_extended_resultA (WLDAP32.@) * ldap_parse_extended_resultA (WLDAP32.@)

View File

@ -34,7 +34,9 @@
#include "wldap32.h" #include "wldap32.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#endif
/*********************************************************************** /***********************************************************************
* ldap_rename_extA (WLDAP32.@) * ldap_rename_extA (WLDAP32.@)

View File

@ -34,7 +34,9 @@
#include "wldap32.h" #include "wldap32.h"
#include "wine/debug.h" #include "wine/debug.h"
#ifdef HAVE_LDAP
WINE_DEFAULT_DEBUG_CHANNEL(wldap32); WINE_DEFAULT_DEBUG_CHANNEL(wldap32);
#endif
/*********************************************************************** /***********************************************************************
* ldap_searchA (WLDAP32.@) * ldap_searchA (WLDAP32.@)