summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/configreader.h2
-rw-r--r--include/inspircd.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/configreader.h b/include/configreader.h
index dba092920..460fd342c 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -49,7 +49,7 @@ class CoreExport ConfigTag : public refcountbase
/** Get the value of an option, using def if it does not exist */
unsigned long getUInt(const std::string& key, unsigned long def, unsigned long min = 0, unsigned long max = ULONG_MAX);
/** Get the value of an option, using def if it does not exist */
- double getFloat(const std::string& key, double def);
+ double getFloat(const std::string& key, double def, double min = DBL_MIN, double max = DBL_MAX);
/** Get the value of an option, using def if it does not exist */
bool getBool(const std::string& key, bool def = false);
diff --git a/include/inspircd.h b/include/inspircd.h
index 035eff49c..a7f19f483 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -25,6 +25,7 @@
#pragma once
+#include <cfloat>
#include <climits>
#include <cmath>
#include <csignal>