#ifdef __CINT__

#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;

#pragma link C++ class TLDAPServer;
#pragma link C++ class TLDAPResult;
#pragma link C++ class TLDAPEntry;
#pragma link C++ class TLDAPAttribute;

#pragma link C++ global LDAP_PORT;
#pragma link C++ global LDAP_SCOPE_DEFAULT;
#pragma link C++ global LDAP_SCOPE_BASE;
#pragma link C++ global LDAP_SCOPE_ONELEVEL;
#pragma link C++ global LDAP_SCOPE_SUBTREE;
#pragma link C++ global LDAP_MOD_ADD;
#pragma link C++ global LDAP_MOD_DELETE;
#pragma link C++ global LDAP_MOD_REPLACE;
#pragma link C++ global LDAP_MOD_BVALUES;
#pragma link C++ global LDAP_SERVER_DOWN;

#endif

#ifdef __CINT__

#pragma link off all globals;
#pragma link off all classes;
#pragma link off all functions;

#pragma link C++ class TLDAPServer;
#pragma link C++ class TLDAPResult;
#pragma link C++ class TLDAPEntry;
#pragma link C++ class TLDAPAttribute;

// These constants are preprocessor statements
// in ldap.h and not variables
// #pragma link C++ global LDAP_PORT;
// #pragma link C++ global LDAP_SCOPE_DEFAULT;
// #pragma link C++ global LDAP_SCOPE_BASE;
// #pragma link C++ global LDAP_SCOPE_ONELEVEL;
// #pragma link C++ global LDAP_SCOPE_SUBTREE;
// #pragma link C++ global LDAP_MOD_ADD;
// #pragma link C++ global LDAP_MOD_DELETE;
// #pragma link C++ global LDAP_MOD_REPLACE;
// #pragma link C++ global LDAP_MOD_BVALUES;
// #pragma link C++ global LDAP_SERVER_DOWN;

#endif

Remove selection of preprocessor macros as globals in the linkdef
Remove selection of preprocessor macros as globals in the linkdef
