Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorHieu Hoang <fishandfrolick@gmail.com>2012-07-18 01:45:23 +0400
committerHieu Hoang <fishandfrolick@gmail.com>2012-07-18 01:45:23 +0400
commit473ed9d1b1688bd9bf0051ed292ad410c3232328 (patch)
tree2bd86f07b74b66fd3828c0f172d3967338db42d6 /util
parent6a94f740197ac3eff812dcf5d4bbf658eea02d5d (diff)
changed variable array to vector. Submitted by a Windows developer.
Diffstat (limited to 'util')
-rw-r--r--util/string_piece.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/string_piece.hh b/util/string_piece.hh
index 5de053aa8..be6a643d0 100644
--- a/util/string_piece.hh
+++ b/util/string_piece.hh
@@ -85,6 +85,11 @@ U_NAMESPACE_BEGIN
#include <string>
#include <string.h>
+#ifdef WIN32
+#undef max
+#undef min
+#endif
+
class StringPiece {
public:
typedef size_t size_type;