summaryrefslogtreecommitdiffhomepage
path: root/Stars45/ComboList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Stars45/ComboList.cpp')
-rw-r--r--Stars45/ComboList.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/Stars45/ComboList.cpp b/Stars45/ComboList.cpp
index 4bf35cc..d070b9f 100644
--- a/Stars45/ComboList.cpp
+++ b/Stars45/ComboList.cpp
@@ -36,6 +36,10 @@
Drop-down list of Buttons class
*/
+#define NOMINMAX
+
+#include <algorithm>
+
#include "MemDebug.h"
#include "ComboList.h"
#include "ComboBox.h"
@@ -168,7 +172,7 @@ ComboList::Draw()
// opening:
if (scrolling > 0) {
- int limit = min(items.size(), max_entries);
+ int limit = std::min(items.size(), max_entries);
if (scroll < limit) {
if (limit > 6)