Move a couple of #undef's
authorJohn Emmas <johne53@tiscali.co.uk>
Sat, 19 May 2018 08:28:30 +0000 (09:28 +0100)
committerJohn Emmas <johne53@tiscali.co.uk>
Sat, 19 May 2018 08:28:30 +0000 (09:28 +0100)
'pbd/timing.h' now includes a call to 'std::numeric_limits<>::max()'

libs/pbd/pbd/timing.h
libs/pbd/timing.cc

index 470751f972e6d295c89df6feb3bed281fef191a6..0cac0baef9ab44edebf27d5eac46f8bb86bf370a 100644 (file)
 
 #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);
index 96b970164751fc93ae44ed0684963db45adb728e..79c8e4aefe5c0c162c6f3ecc9d3d391bf6704bfb 100644 (file)
 #include <sstream>
 #include <limits>
 
-#ifdef COMPILER_MSVC
-#undef min
-#undef max
-#endif
-
 namespace PBD {
 
 bool