mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-13 10:52:56 +01:00
Fix compile error with Visual C++ 2008
File decoder.cpp does not compile with Visual C++ 2008: 1>c:\tmp\libzmq\src\decoder.cpp(117) : warning C4003: not enough actual parameters for macro 'max' 1>c:\tmp\libzmq\src\decoder.cpp(117) : error C2589: '(' : illegal token on right side of '::' 1>c:\tmp\libzmq\src\decoder.cpp(117) : error C2059: syntax error : '::' 1>c:\tmp\libzmq\src\decoder.cpp(117) : error C2143: syntax error : missing ';' before '{' This error is caused by the precense of a macro 'max' when including 'windows.h'. To solve this problem, the preprocessor macro /DNOMINMAX must be specified.
This commit is contained in:
parent
68c1be8bf6
commit
37e4a38eb5
@ -42,6 +42,7 @@
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalOptions="-DDLL_EXPORT -DFD_SETSIZE=1024 -D_CRT_SECURE_NO_WARNINGS"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="NOMINMAX"
|
||||
MinimalRebuild="true"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
|
Loading…
Reference in New Issue
Block a user