diff --git a/dlls/wldap32/add.c b/dlls/wldap32/add.c index 3d6bd82e90c..99d7c818f8d 100644 --- a/dlls/wldap32/add.c +++ b/dlls/wldap32/add.c @@ -31,8 +31,9 @@ #ifdef HAVE_LDAP_H #include -static LDAPMod *nullattrs[] = { NULL }; -#else +#endif + +#ifndef LDAP_NOT_SUPPORTED #define LDAP_NOT_SUPPORTED 0x5c #endif @@ -41,6 +42,10 @@ static LDAPMod *nullattrs[] = { NULL }; WINE_DEFAULT_DEBUG_CHANNEL(wldap32); +#ifdef HAVE_LDAP +static LDAPMod *nullattrs[] = { NULL }; +#endif + /*********************************************************************** * ldap_addA (WLDAP32.@) * diff --git a/dlls/wldap32/modify.c b/dlls/wldap32/modify.c index 029bdb5927d..e0890cef5e0 100644 --- a/dlls/wldap32/modify.c +++ b/dlls/wldap32/modify.c @@ -31,8 +31,9 @@ #ifdef HAVE_LDAP_H #include -static LDAPMod *nullmods[] = { NULL }; -#else +#endif + +#ifndef LDAP_NOT_SUPPORTED #define LDAP_NOT_SUPPORTED 0x5c #endif @@ -41,6 +42,10 @@ static LDAPMod *nullmods[] = { NULL }; WINE_DEFAULT_DEBUG_CHANNEL(wldap32); +#ifdef HAVE_LDAP +static LDAPMod *nullmods[] = { NULL }; +#endif + /*********************************************************************** * ldap_modifyA (WLDAP32.@) *