Index: fpdfsdk/src/javascript/PublicMethods.cpp |
diff --git a/fpdfsdk/src/javascript/PublicMethods.cpp b/fpdfsdk/src/javascript/PublicMethods.cpp |
index 6db31de1e7097568d69b9df129e4f2a9ab875263..d2f7fb09ac674078624f8104476ec95bd78f0422 100644 |
--- a/fpdfsdk/src/javascript/PublicMethods.cpp |
+++ b/fpdfsdk/src/javascript/PublicMethods.cpp |
@@ -6,6 +6,8 @@ |
#include "PublicMethods.h" |
+#include <algorithm> |
+ |
#include "Field.h" |
#include "JS_Context.h" |
#include "JS_Define.h" |
@@ -142,10 +144,10 @@ double CJS_PublicMethods::AF_Simple(const FX_WCHAR* sFuction, |
return dValue1 * dValue2; |
} |
if (FXSYS_wcsicmp(sFuction, L"MIN") == 0) { |
- return FX_MIN(dValue1, dValue2); |
+ return std::min(dValue1, dValue2); |
} |
if (FXSYS_wcsicmp(sFuction, L"MAX") == 0) { |
- return FX_MAX(dValue1, dValue2); |
+ return std::max(dValue1, dValue2); |
} |
return dValue1; |
} |