kidok / protobuf

Automatically exported from code.google.com/p/protobuf
0 stars 0 forks source link

Small issue building under Win32 #606

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have a small issue building protocol buffers 2.5.0 under Visual Studio 
Express 2013

The file zero_copy_stream_impl_lite.cc uses the functions max and min but does 
not include <algorithm>

The fix is, in zero_copy_stream_impl_lite.cc, add, below the includes:

-------------------------------------------------
#include <algorithm>

using std::min;
using std::max;
-------------------------------------------------

Best regards

Original issue reported on code.google.com by ramon.ga...@gmail.com on 12 Feb 2014 at 4:37

GoogleCodeExporter commented 9 years ago
See Issue 531. This issue was fixed as r512. Maybe next release will contain 
the fix.

Original comment by yukawa@google.com on 23 Mar 2014 at 10:48

GoogleCodeExporter commented 9 years ago
Fixed in r512. Will be included in next release.

Original comment by xiaof...@google.com on 24 Mar 2014 at 6:05