Explorar el Código

Fixed compile error without message digest support.

Tatsuhiro Tsujikawa hace 14 años
padre
commit
33ba91fbc6
Se han modificado 2 ficheros con 4 adiciones y 0 borrados
  1. 2 0
      src/OptionHandlerImpl.cc
  2. 2 0
      src/OptionHandlerImpl.h

+ 2 - 0
src/OptionHandlerImpl.cc

@@ -349,6 +349,7 @@ std::string IndexOutOptionHandler::createPossibleValuesString() const
   return "INDEX=PATH";
 }
 
+#ifdef ENABLE_MESSAGE_DIGEST
 ChecksumOptionHandler::ChecksumOptionHandler
 (const Pref* pref,
  const std::string& description,
@@ -375,6 +376,7 @@ std::string ChecksumOptionHandler::createPossibleValuesString() const
 {
   return "HASH_TYPE=HEX_DIGEST";
 }
+#endif // ENABLE_MESSAGE_DIGEST
 
 ParameterOptionHandler::ParameterOptionHandler
 (const Pref* pref,

+ 2 - 0
src/OptionHandlerImpl.h

@@ -161,6 +161,7 @@ public:
   virtual std::string createPossibleValuesString() const;
 };
 
+#ifdef ENABLE_MESSAGE_DIGEST
 class ChecksumOptionHandler : public AbstractOptionHandler {
 public:
   ChecksumOptionHandler(const Pref* pref,
@@ -170,6 +171,7 @@ public:
   virtual void parseArg(Option& option, const std::string& optarg);
   virtual std::string createPossibleValuesString() const;
 };
+#endif // ENABLE_MESSAGE_DIGEST
 
 class ParameterOptionHandler : public AbstractOptionHandler {
 private: