summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2018-05-19 09:28:30 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2018-05-19 09:28:30 +0100
commit07466440c4972b083c6f5cd276f4540ba9c5de6c (patch)
tree4ea0474bb9dccca6961aeee3895d23e45dcfcd58 /libs/pbd
parent7e78d1c786d253c8456a24d4d7ffc35ad302edbf (diff)
Move a couple of #undef's
'pbd/timing.h' now includes a call to 'std::numeric_limits<>::max()'
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/pbd/timing.h5
-rw-r--r--libs/pbd/timing.cc5
2 files changed, 5 insertions, 5 deletions
diff --git a/libs/pbd/pbd/timing.h b/libs/pbd/pbd/timing.h
index 470751f972..0cac0baef9 100644
--- a/libs/pbd/pbd/timing.h
+++ b/libs/pbd/pbd/timing.h
@@ -31,6 +31,11 @@
#include "pbd/libpbd_visibility.h"
+#ifdef COMPILER_MSVC
+#undef min
+#undef max
+#endif
+
namespace PBD {
LIBPBD_API bool get_min_max_avg_total (const std::vector<uint64_t>& values, uint64_t& min, uint64_t& max, uint64_t& avg, uint64_t& total);
diff --git a/libs/pbd/timing.cc b/libs/pbd/timing.cc
index 96b9701647..79c8e4aefe 100644
--- a/libs/pbd/timing.cc
+++ b/libs/pbd/timing.cc
@@ -22,11 +22,6 @@
#include <sstream>
#include <limits>
-#ifdef COMPILER_MSVC
-#undef min
-#undef max
-#endif
-
namespace PBD {
bool