From ef7f17be8085488ba965286fb97927a7ce3600e7 Mon Sep 17 00:00:00 2001 From: Jonathan Reams Date: Thu, 26 Mar 2015 18:00:00 -0400 Subject: SERVER-9563 Add support for config.h header --- src/mongo/crypto/crypto_openssl.cpp | 8 +++++--- src/mongo/crypto/crypto_tom.cpp | 8 +++++--- 2 files changed, 10 insertions(+), 6 deletions(-) (limited to 'src/mongo/crypto') diff --git a/src/mongo/crypto/crypto_openssl.cpp b/src/mongo/crypto/crypto_openssl.cpp index 576adf9d54e..3d22ad406a6 100644 --- a/src/mongo/crypto/crypto_openssl.cpp +++ b/src/mongo/crypto/crypto_openssl.cpp @@ -26,12 +26,14 @@ * it in the license file. */ -#ifndef MONGO_SSL -#error This file should only be included in SSL-enabled builds -#endif +#include "mongo/config.h" #include "mongo/platform/basic.h" +#ifndef MONGO_CONFIG_SSL +#error This file should only be included in SSL-enabled builds +#endif + #include #include #include diff --git a/src/mongo/crypto/crypto_tom.cpp b/src/mongo/crypto/crypto_tom.cpp index 9051d647f2c..85cc8387bb3 100644 --- a/src/mongo/crypto/crypto_tom.cpp +++ b/src/mongo/crypto/crypto_tom.cpp @@ -26,12 +26,14 @@ * it in the license file. */ -#ifdef MONGO_SSL -#error This file should not be included if compiling with SSL support -#endif +#include "mongo/config.h" #include "mongo/platform/basic.h" +#ifdef MONGO_CONFIG_SSL +#error This file should not be included if compiling with SSL support +#endif + #include "mongo/crypto/tom/tomcrypt.h" namespace mongo { -- cgit v1.2.1