aboutsummaryrefslogtreecommitdiff
path: root/main.h
diff options
context:
space:
mode:
authorMatt Corallo <matt@bluematt.me>2011-03-26 13:01:27 +0100
committerMatt Corallo <matt@bluematt.me>2011-03-30 20:45:56 +0200
commit8bb5edc1c9054d835ef79c9f1ab3e021b0693303 (patch)
tree3f97435a0e5c512bcbafe15bb0f8a014a7b6e278 /main.h
parent454bc86479a387893604cd662aae994d37699672 (diff)
downloadbitcoin-8bb5edc1c9054d835ef79c9f1ab3e021b0693303.tar.xz
Allow UPnP mapping when USE_UPNP is defined and miniupnpc is installed at build time(statically linked).
Thanks joepie91 for the translation of the new copyright notices into Dutch. Thanks sipa for the translation of the new copyright notices into French. Thanks megu for the translation of the new copyright notices into Spanish. Thanks justmoon/Blitzboom for the translation of the new copyright notices into German. Thanks Joozero for the translation of the new copyright notices into Italian. Remaining translations were provided by Google Translate.
Diffstat (limited to 'main.h')
-rw-r--r--main.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.h b/main.h
index e9d0c00310..71fbdfd3a1 100644
--- a/main.h
+++ b/main.h
@@ -22,6 +22,11 @@ static const int64 CENT = 1000000;
static const int64 MAX_MONEY = 21000000 * COIN;
inline bool MoneyRange(int64 nValue) { return (nValue >= 0 && nValue <= MAX_MONEY); }
static const int COINBASE_MATURITY = 100;
+#ifdef USE_UPNP
+static const int fHaveUPnP = true;
+#else
+static const int fHaveUPnP = false;
+#endif
@@ -55,6 +60,7 @@ extern int fLimitProcessors;
extern int nLimitProcessors;
extern int fMinimizeToTray;
extern int fMinimizeOnClose;
+extern int fUseUPnP;