Fix posix builds.
authorNicholas Hastings <skamonkey@gmail.com>
Wed Jul 03 23:27:04 2013 -0400 (2013-07-03)
changeset 3930bf78b97106e5
parent 3929 0bc0ffdb2eba
child 3931 576fa42454dc
Fix posix builds.
core/logic/stringutil.cpp
     1.1 --- a/core/logic/stringutil.cpp	Wed Jul 03 23:14:55 2013 -0400
     1.2 +++ b/core/logic/stringutil.cpp	Wed Jul 03 23:27:04 2013 -0400
     1.3 @@ -319,7 +319,7 @@
     1.4  
     1.5  	if (end > 0 && !PATHSEPARATOR(in[end]) && end < outSize)
     1.6  	{
     1.7 -		int nChars = min(end, outSize-1);
     1.8 +		int nChars = MIN(end, outSize-1);
     1.9  		if (out != in)
    1.10  		{
    1.11  			memcpy(out, in, nChars);