From 55583540a8eccd0259145aeba8c368bc7d409e13 Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Wed, 3 Jul 2013 23:27:04 -0400 Subject: [PATCH] Fix posix builds. --- core/logic/stringutil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/logic/stringutil.cpp b/core/logic/stringutil.cpp index 3d8b92e7..ca3e7108 100644 --- a/core/logic/stringutil.cpp +++ b/core/logic/stringutil.cpp @@ -319,7 +319,7 @@ void UTIL_StripExtension(const char *in, char *out, int outSize) if (end > 0 && !PATHSEPARATOR(in[end]) && end < outSize) { - int nChars = min(end, outSize-1); + int nChars = MIN(end, outSize-1); if (out != in) { memcpy(out, in, nChars);