From e8e40c7bcf691588655154d2146645663b4df7cb Mon Sep 17 00:00:00 2001 From: Arnaud Demaiziere Date: Wed, 28 Mar 2007 11:45:32 +0000 Subject: [PATCH] - Fixed compiling errors when upnp is disabled (chris) --- src/bittorrent.cpp | 3 +++ src/options_imp.cpp | 2 ++ 2 files changed, 5 insertions(+) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 82c15065c..9af9a57ee 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -27,7 +27,10 @@ #include "bittorrent.h" #include "misc.h" #include "downloadThread.h" + +#ifndef NO_UPNP #include "UPnP.h" +#endif // Main constructor bittorrent::bittorrent(){ diff --git a/src/options_imp.cpp b/src/options_imp.cpp index 0814cd761..6062f5072 100644 --- a/src/options_imp.cpp +++ b/src/options_imp.cpp @@ -674,6 +674,7 @@ void options_imp::disableDHTGroup(int checkBoxValue){ } } +#ifndef NO_UPNP void options_imp::disableUPnPGroup(int checkBoxValue){ if(checkBoxValue==2){ //Disable @@ -683,6 +684,7 @@ void options_imp::disableUPnPGroup(int checkBoxValue){ groupUPnP->setEnabled(true); } } +#endif void options_imp::enableSavePath(int checkBoxValue){ if(checkBoxValue==2){