From 2d545befdd0653f7db9d9981460b93650d842861 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Thu, 27 Jan 2011 21:43:22 +0000 Subject: [PATCH] Cleanup version checking --- libraries/libldap/tls_m.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/libldap/tls_m.c b/libraries/libldap/tls_m.c index 36d32761de..8c7ecf872e 100644 --- a/libraries/libldap/tls_m.c +++ b/libraries/libldap/tls_m.c @@ -61,17 +61,17 @@ #include #include +#undef NSS_VERSION_INT +#define NSS_VERSION_INT ((NSS_VMAJOR << 24) | (NSS_VMINOR << 16) | \ + (NSS_VPATCH << 8) | NSS_VBUILD) + /* NSS 3.12.5 and later have NSS_InitContext */ -#if NSS_VMAJOR <= 3 && NSS_VMINOR <= 12 && NSS_VPATCH < 5 -/* do nothing */ -#else +#if NSS_VERSION_INT >= 0x030c0500 #define HAVE_NSS_INITCONTEXT 1 #endif /* NSS 3.12.9 and later have SECMOD_RestartModules */ -#if NSS_VMAJOR <= 3 && NSS_VMINOR <= 12 && NSS_VPATCH < 9 -/* do nothing */ -#else +#if NSS_VERSION_INT >= 0x030c0900 #define HAVE_SECMOD_RESTARTMODULES 1 #endif -- 2.39.5