remove NSPR20 and flip logic for NSPR 1.0 compatibility
git-svn-id: svn://10.0.0.236/trunk@13110 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -49,7 +49,8 @@
|
||||
#define LINEBREAK "\n"
|
||||
#endif
|
||||
#include "sechash.h"
|
||||
#ifndef NSPR20
|
||||
/* NSPR 1.0 compatability */
|
||||
#ifdef NSPR
|
||||
#include "prhash.h"
|
||||
#else
|
||||
#include "plhash.h"
|
||||
@@ -2055,7 +2056,7 @@ JSBool PR_CALLBACK pref_NativeGetLDAPAttr
|
||||
|
||||
if (m_AutoAdminLib) {
|
||||
get_ldap_attributes = (ldap_func)
|
||||
#ifndef NSPR20
|
||||
#ifdef NSPR
|
||||
PR_FindSymbol(
|
||||
#ifndef XP_WIN16
|
||||
"pref_get_ldap_attributes"
|
||||
@@ -2063,7 +2064,7 @@ JSBool PR_CALLBACK pref_NativeGetLDAPAttr
|
||||
MAKEINTRESOURCE(1)
|
||||
#endif
|
||||
, m_AutoAdminLib);
|
||||
#else /* NSPR20 */
|
||||
#else /* NSPR */
|
||||
PR_FindSymbol(
|
||||
m_AutoAdminLib,
|
||||
#ifndef XP_WIN16
|
||||
@@ -2072,7 +2073,7 @@ JSBool PR_CALLBACK pref_NativeGetLDAPAttr
|
||||
MAKEINTRESOURCE(1)
|
||||
#endif
|
||||
);
|
||||
#endif /* NSPR20 */
|
||||
#endif /* NSPR */
|
||||
}
|
||||
if (get_ldap_attributes == NULL) {
|
||||
/* This indicates the AutoAdmin dll was not found. */
|
||||
@@ -2311,7 +2312,7 @@ pref_LoadAutoAdminLib()
|
||||
}
|
||||
/* Make sure it's really libAutoAdmin.so */
|
||||
|
||||
#ifndef NSPR20
|
||||
#ifdef NSPR
|
||||
if ( lib && PR_FindSymbol("_POLARIS_SplashPro", lib) == NULL ) return NULL;
|
||||
#else
|
||||
if ( lib && PR_FindSymbol(lib, "_POLARIS_SplashPro") == NULL ) return NULL;
|
||||
|
||||
Reference in New Issue
Block a user